Payment Gateway API for Leaky Paywall

Note: Leaky Paywall comes with a PayPal and Stripe integration out of the box, so you don't need this documentation if you use one of those payment gateways. 

You can also use our WooCommerce add-on to get access to any payment gateway available with WooCommerce.

1. Create subclass

– set up test mode and supports
– load any dependencies
– process signup
– process webhooks
– add fields to sign up form
– validate fields
– load any checkout scripts

https://gist.github.com/greenhornet79/dd60506e5cae43f2c9f7db95889645d1

2. Register the gateway (adds to the list of possible gateways in Leaky Paywall settings)

https://gist.github.com/greenhornet79/a7924ea1fdd3522aeecd8d7b6a2ac32d

3. Add sign up link

https://gist.github.com/greenhornet79/94dce940b18ba99d4d46c4c171449104

4. Add gateway settings to Leaky Paywall page

https://gist.github.com/greenhornet79/9d781f6bee9b409acc0a1bea0912b572

5. Add slug filter so that it shows up in the subscriber table

https://gist.github.com/greenhornet79/3d0ba27116b07c8f426b79a146c93ae8

Still need help? Contact Us Contact Us