Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitLab with WP-CLI:
wp plugin install https://gitlab.com/mitcnc/wordpress-stripe-plugin/-/archive/master/wordpress-stripe-plugin-master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
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].