strapi-stripe-with-cart

1.12.3 • Public • Published

Stripe Payment plugin for Strapi

Stripe Online payment processing for internet businesses. It's a suite of payment APIs that powers commerce for online businesses of all sizes.

Strapi is the leading open-source headless Content Management System. It’s 100% JavaScript, fully customizable and developer-first.

Overview: Start accepting online payments

The Stripe Payments plugin enables you to accept debit and credit card payments on your Strapi website or app.

Setting up the plugin is super easy and can be completed within 10 minutes.

  1. Enter your Stripe API credentials.
  2. Create some products, for which the plugin will automtically generate the payment button code.
  3. Embed the payment button code on your product listing page.
  4. On clicking the payment button, your customer will be redirected to the payment page, securely hosted by Stripe.
  5. On making payment, your customer is redirected back to your checkout result page that you can customize.
  6. Every transaction is recorded, giving you visibility and insights.

That's all you need to do to turn your Strapi website or application into an e-commerce site!

GitHub package.json version Monthly download on NPM



Features

  1. Quick installation and setup.
  2. Easily accept online payment for any products (or services) you want to sell on your Strapi site.
  3. Automatically creates payment buttons for you to embed anywhere on your site.
  4. Add multiple “Buy Now” payment buttons on a page.
  5. View transaction details for all your products from your Strapi admin dashboard.
  6. Specify a custom name, image and description for a product.
  7. Setup email notification to the buyer and seller (aka you) after the purchase.
  8. Customize the message on the checkout result page.
  9. Configure the currency type for the payment.
  10. Run in test mode for debudding



strapi-stripe-payment



⚙️ Versions

  • Strapi v4



🖐 Requirements

The requirements to install the Stripe Payments plugin is the same as those to install Strapi.

Please refer to the official Strapi installation requirement doc here: Installation Requirements.

Minimum environment requirements

  • Node.js >=14.x.x
  • NPM >=6.x.x

We are following the official Node.js releases timelines.

Supported Strapi versions:

  • Strapi v4.1.5 (recently tested)
  • Strapi v4.x

The Stripe Payments plugin is designed for Strapi v4.x. It won't work with Strapi v3.x.



Installation

Use npm to install this plugin within your Strapi project.

Refer to this doc to install npm

npm i strapi-stripe

After successful installation you would need to build a fresh package that includes the Stripe Payments plugin UI. Execute the commands below:

# with npm (option 1)
$ npm run build
$ npm run develop

# with npx (option 2)
$ npx strapi  build
$ npx strapi  develop

The Stripe Payments plugin should appear in the Plugins section of the Strapi sidebar after you run the app again.

Now you are ready to accept online payments via Stripe on your Strapi website 🎉



🔧 Configuration

You can easily configure the Stripe Payments plugin to connect with your Stripe Account.

  • Go to Strapi Settings -> Stripe -> Configuration.
  • On the configiration page, Enter All the fields.
  • Using Live Mode checkBox, you can easily toggle between Stripe Test and Live mode.
  • Click on Save to save the Stripe confiiguration.



strapi-stripe-Configuration


Create a Product

After configuring Stripe, you can create products.

The products that you would create via the plugin will also automatically get created in Stripe.

Follow the steps below to create a product:

  1. Click on Stripe in the Plugins section.
  2. Click on Add Product.
  3. Enter Title, Price, Image URL and Description.
  4. Click on Save button to create a product.



strapi-stripe-product-create


Embed Payment Button Code

After creating a product, click on the Embed Code icon.

You would see a popup with easy-to-follow steps, detailed below, to embed the Payment button on your product listing page.

  • Embed the script tag to Your product listing, payment success and payment failure pages.
  • Embed the Payment Button Code on your product listing page.
  • You can customize the text of the Payment Button (example - Buy Now, Pay Now) and style using the appropriate css.

Your product listing page is where you would show all your products for your customers to browse through and purcase. Setting up the product listing page is beyond the scope of this plugin as that would depend on your choice for the frontend.


Accept Online Payments

After you embedding the Payment Button on your product list page, you are ready to accept online payments.


Payment Reports

The Stripe Payments plugin also provides the payment transaction report. To view the transaction report, click on Report Icon in the action column.



strapi-stripe-payment-report


📝 License

MIT License

Copyright (c) HigherEdLab.com.

Package Sidebar

Install

npm i strapi-stripe-with-cart

Weekly Downloads

0

Version

1.12.3

License

MIT

Unpacked Size

190 kB

Total Files

63

Last publish

Collaborators

  • jclaudan