Stripe for WordPress GitLab
Plugin to enable purchases via Stripe
by Clinton Blackburn · gitlab.com/mitcnc/wordpress-stripe-plugin · website
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://gitlab.com/mitcnc/wordpress-stripe-plugin/-/archive/master/wordpress-stripe-plugin-master.zipFrom the readme
Enable users to make purchases via Stripe.
This plugin enables WordPress installations to use Stripe to make purchases.
The plugin makes use of Stripe Checkout [0] to facilitate purchases without the
need to create a custom UI. Stripe's customer portal [1] is used to enable
users to manage their subscriptions and saved payment methods.
[0] https://stripe.com/docs/payments/checkout
[1] https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
1. Install the plugin via Composer. See https://www.smashingmagazine.com/2019/03/composer-wordpress/
to learn more about installing WordPress plugins via Composer.
2. Activate the plugin as you would any other plugin.
3. Configure the Stripe credentials at Settings Stripe.
4. Setup a webhook endpoint at Stripe [2] to listen for the following events:
- customer.subscription.created
- customer.subscription.deleted
- customer.subscription.updated
[2] https://stripe.com/docs/webhooks
A Stripe customer is created (if one does not exist) whenever a user is created on the site or a checkout/customer
portal session is created. If you need to sync all users, there is a background task powered by action-scheduler [3].