To sell membership plans with recurring billing, you must connect your website to a payment gateway. LearnPress currently supports Stripe and PayPal. You can use either one or both.
How It Works
- A student selects a membership plan and proceeds to checkout.
- Stripe or PayPal processes the payment.
- The payment gateway sends a webhook (an automatic notification) to your website.
- LearnPress updates the student’s membership status.
- At the beginning of each billing period, the payment gateway automatically charges the student and notifies your website.
Setup Steps
- Set up your payment gateway: Create an account, obtain your API credentials, and configure webhooks.
- Connect to LearnPress: Enter your API credentials in LearnPress > Settings > Payments.
- Enable the gateway for your plans: Go to Membership > Membership Plans and enable the corresponding payment gateway for each plan.
Before You Start
Make sure you have the following:
- A publicly accessible website: Stripe and PayPal need to send webhooks to your website, so it must be online and accessible from the internet. Websites running on localhost or protected by a password will not work.
- A supported currency: Check your currency under
LearnPress → Settings → General → Currency, then confirm that your chosen payment gateway supports it. Make sure you use the same currency in both LearnPress and your payment gateway settings. - An account with your chosen payment gateway.
Stripe
- Create an account: https://dashboard.stripe.com/register
- Supported countries: https://stripe.com/global
- Supported currencies: https://docs.stripe.com/currencies
PayPal
- Create a Business account: https://www.paypal.com/bizsignup/
- Supported currencies: https://developer.paypal.com/api/rest/reference/currency-codes/
Choose a Payment Gateway to Continue
- Stripe: Follow the guide to set up Stripe for membership payments.
- PayPal: Follow the guide to set up PayPal for membership payments.
