Leaky Paywall Recurring Payments

Easily set up recurring payments with the Leaky Paywall - Recurring Payments add-on.  When a subscription is set to recurring, a subscriber account is automatically created in Stripe or PayPal. This is where their credit card information is saved. The customer will be billed automatically on the interval you specify for the length of the subscription.

Plugin Installation

In your WordPress admin, go to Plugins > Add New > Upload. Find the zip file of the plugin files and upload it to your site. After you upload the plugin you can activate it.

Setup

1. After you install and activate the Recurring Payments plugin, you will get a new option on the level settings for Leaky Paywall. You can choose to set a level to use recurring payments by checking the box. This works for both Stripe and Paypal.

2. In Stripe, add webhooks to receive data when a recurring payment is attempted by Stripe. This is needed in order to ensure Leaky Paywall knows when a new payment has been made.

You can find the webhook URL under Leaky Paywall > Payments > Stripe Settings.

In Stripe if you go to Account Settings -> Webhooks, it should have something like the screenshot below. When setting up the webhook, make sure you choose to receive all events.

These are the events that the core Leaky Paywall plugin uses.  If you are having timeout errors in Stripe, at a minimum we recommend enabling these.  However, please note that over time Stripe has added new events, so it is possible that more may be required at a later date.  That is why recommend receiving all Stripe events. 

charge.succeeded
charge.failed
charge.refunded
customer.deleted
invoice.payment_succeeded
invoice.payment_failed
invoice.paid
customer.subscription.updated
customer.subscription.created
customer.subscription.deleted
payment_intent.canceled
payment_intent.succeeded
payment_intent.payment_failed

In your Stripe dashboard, go to Developers > Webhooks and click "+ Add endpoint".  Enter the Endpoint URL and click on "+ Select Events".

Check the box for "Select all events" and then add the endpoint.

Optional: add a signing secret

If you want additional security, you can add the Stripe webhook signing secret to Leaky Paywall.  Click "Reveal" to see the signing secret generated by Stripe.  Copy this secret and paste it into the Leaky Paywall setting under Stripe for either test or live signing secret, depending on what mode you are currently in.

Still need help? Contact Us Contact Us