Stripe Checkout

Stripe Checkout is a beautifully simple payment flow offered by Stripe.com that allows you to accept credit / debit cards for membership registrations directly on your Restrict Content Pro powered website.

The Stripe Checkout integration for Restrict Content Pro offers two options:

  1. Display on the standard registration form provided with the [register_form] shortcode.
  2. Stand alone display on any page with the [register_form_stripe] shortcode.

When using option #1, customers will use the standard registration form in Restrict Content Pro to create their account and then the Stripe Checkout modal window will be shown as soon as the customer clicks the Submit Payment button:

When using option #2, the detailed registration form is bypassed and customers are shown a simple Join button that, when clicked, opens the Stripe Checkout modal window. Through this option, customers only need to enter their email address and card details. The account's username and password are set automatically when the payment form is submitted.

Your website can use either option or both simultaneously.

Note: if you would like customers to enter their card details on the page without using the modal window, use the regular Stripe gateway.

Connecting your Stripe account

Configuring Stripe Checkout is simple and only takes a few moments.

First, go to Restrict > Settings > General and enable Stripe Checkout:

Next, under Stripe Settings, enter your API credentials for Stripe. These are required in order to use Stripe and can be obtained from your Stripe API Keys page.

Webhooks

Stripe Webhooks are how Restrict Content Pro communicates with Stripe and is the system RCP uses to detect when a subscription has been updated (payment made, account cancelled, etc).

The URL that Stripe sends webhooks to must be configured manually from your Account Webhooks settings page.

Click Add Endpoint:

Select Account:

Enter "http://yoursite.com/?listener=stripe" for the URL and select All Events. Replace yoursite.com with the actual domain to your site.

If you are using Stripe in Test Mode and you have Sandbox enabled in Restrict > Settings > General, you MUST select Test for the Mode option. You can also create a second endpoint and select "Test" for the Mode.

[register_form_stripe] options

There are numerous options that allow you to control the exact labels, descriptions, and logo displayed on the Stripe Checkout modal window when using the [register_form_stripe] shortcode.

See the [register_form_stripe] documentation for a complete list of options.

Testing Stripe Payment Gateway

Due to Stripe.com's phenomenal testing environment, you can fully test all aspects of Restrict Content Pro before deploying to a live environment.

To test Restrict Content Pro with Stripe, follow these steps:

  1. Enter your test API keys in Settings.
  2. Enable Test Mode in Settings.
  3. Switch your Stripe.com account to Test.
  4. Visit your website's registration page while logged out.
  5. Click on the Join button and enter your email address.
  6. Enter "4242424242424242" for card number.
  7. Enter 12 / 2020 for the expiration or Any date in the future will work.
  8. Enter 123 for the CVC code.
  9. Click Register / Sign Up.
  10. You should now be redirected to the success page and logged-in as your new user.
  11. Check your Stripe.com account history where you will see the test transaction.
  12. Your new user now has a fully activated account.