Online payments and subscriptions made simple, secure and fast. This free plugin enables you to accept online payments and create subscriptions using Paypal account or Credit/Debit card on your Strapi app via Paypal.
Online payments and subscriptions made simple, secure and fast.
This free plugin enables you to accept online payments and create subscriptions using Paypal account or Credit/Debit card on your Strapi app via Paypal.
paypal 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.
The Paypal 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.
That's all you need to do to turn your Strapi website or application into an e-commerce site!
The requirements to install the Paypal 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
>=18.x.x
>=8.x.x
We are following the official Node.js releases timelines.
Supported Strapi versions:
Strapi v4.11.0 (recently tested)
Strapi v4.x
The Stripe Payments plugin is designed for Strapi v4.x. It won't work with Strapi v3.x.
Use npm to install this plugin within your Strapi project.
Refer to this doc to install npm
npm i strapi-paypal
After successful installation please add the below enviornment variables in .env
files
STRAPI_ADMIN_API_TOKEN=*your strapi api token*
STRAPI_ADMIN_PAYPAL_SANDBOX_API_URL=https://api-m.sandbox.paypal.com
STRAPI_ADMIN_PAYPAL_LIVE_API_URL=https://api-m.paypal.com
STRAPI_ADMIN_LIVE_PAYPAL_CLIENT_ID=*your live paypal client id*
STRAPI_ADMIN_LIVE_PAYPAL_CLIENT_SECRET=*your live paypal client secret*
STRAPI_ADMIN_SANDBOX_PAYPAL_CLIENT_ID=*your sandbox paypal client id*
STRAPI_ADMIN_SANDBOX_PAYPAL_CLIENT_SECRET=*your sandbox paypal client secret*
Note: You can get the STRAPI_ADMIN_API_TOKEN from your Strapi Admin Panel. Go to
Settings -> Global settings ->API Tokens -> Create new API Token
. Make Sure to SelectToken duration-> Unlimited
andToken type -> Full Access
and save it Copy the token and add it in .env file.Note: Please Make sure to add the .env variables and verify them before starting the server.
# with npm (option 1)
$ npm run build
$ npm run develop
# with npx (option 2)
$ npx strapi build
$ npx strapi develop
The Payment 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 🎉
You can easily configure the Paypal Payments plugin to connect with your Paypal Account.
Settings -> PAYPAL -> Configuration
.Live Mode
Switch Box, you can easily toggle between Paypal Test and Live mode.
After configuring Paypal, you can create products.
The products or subscription that you would create via the plugin will also automatically get created in Paypal.
Follow the steps below to create a product:
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.
Your product listing page is where you would show all your products for your customers to browse through and purchase. Setting up the product listing page is beyond the scope of this plugin as that would depend on your choice for the frontend.
After you embedding the Payment Button on your product list page, you are ready to accept online payments.
Copyright © 2022 AsyncWeb
npm install strapi-paypal
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.