Stripe Payment Gateway

Leaky Paywall connects to Stripe through Stripe Connect, built into Leaky Paywall 5.0 and later. No add-on is needed. You just need a Stripe account.

In this article

  1. Connect your Stripe account
  2. Set up Stripe webhooks
  3. Optional Stripe settings
  4. Choose which payment methods readers see

Step 1: Connect your Stripe account

  1. Go to Leaky Paywall > Settings > Payments.
  2. Under Enabled Gateways, make sure Stripe (Credit/Debit Card) is ticked.
  3. Click Connect to Stripe. This opens Stripe, where you can sign in or create an account.
  4. Follow Stripe's steps to verify your business details.
  5. When you return to WordPress, the Payments tab shows that Stripe is connected.

Once setup is complete, Leaky Paywall switches from test mode to live mode automatically.

On a version before 5.0? Older setups that use Stripe API keys keep working. To use Stripe Connect, update Leaky Paywall to the latest version.

Readers stay on your site to pay, using cards, Apple Pay, Google Pay and other payment methods. If you need to send readers to a Stripe-hosted payment page instead, use Stripe Checkout. You cannot turn on both Stripe and Stripe Checkout at the same time.

Step 2: Set up Stripe webhooks

Webhooks tell Leaky Paywall when Stripe takes a payment, a renewal fails or a subscription is cancelled. You need them for recurring subscriptions to stay in sync.

  1. In Leaky Paywall, go to Settings > Payments and copy the Stripe Webhook URL. It looks like https://yoursite.com/?listener=stripe.
  2. Log in to Stripe and use the account dropdown to select the account connected to Leaky Paywall (it shows the Leaky Paywall logo).
  3. In Stripe, open Workbench > Webhooks (or go to dashboard.stripe.com/webhooks) and click Create an event destination.
  4. Paste the webhook URL into Endpoint URL.
  5. Click Select events, choose Select all events, then click Add events and save.
  6. If Stripe asks for a payload format, choose Snapshot (not Thin). Leaky Paywall needs the full event details. For destination type, choose Webhook endpoint.
  7. Back in Leaky Paywall, tick I have enabled the Leaky Paywall webhook URL in my Stripe account.
  8. Recommended: copy the signing secret from your Stripe webhook into Live Signing Secret (and Test Signing Secret if you test). This lets Leaky Paywall check that each webhook really came from Stripe, which Stripe recommends for every endpoint.
  9. Click Save Settings.

Stripe webhook settings in Leaky Paywall

Step 3: Optional Stripe settings

  • Apple Pay: turn on Apple Pay. You need to verify your domain in Stripe first.
  • Customer Portal: lets subscribers manage their recurring payment details in Stripe's customer portal from your My Account page.
  • Restrict Stripe Assets: only loads Stripe's scripts on pages that take payments. Stripe's fraud detection works best when its scripts load on every page, so only use this if you need to.

Optional Stripe settings

Step 4: Choose which payment methods readers see

Stripe decides which payment methods to show based on your Stripe settings and currency. In some regions this includes PayPal, which you can turn on in your Stripe payment method settings. To remove ones you don't want:

  1. In Stripe, go to Settings > Billing > Invoices.
  2. Click Manage next to Payment methods, at the bottom of the page.

Manage payment methods in Stripe

  1. Turn off any payment methods you don't want and click Save.
  2. You may also need to turn them off under Settings > Payment methods.

Turn off payment methods in Stripe

Related: Recurring payments | Stripe Tax | Stripe payment button stuck

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us