JReviews logo
Guides
Menu
Guides and community examples
Version

Stripe Payments

Easily start accepting credit card payments with Stripe inside the PaidListings Add-on. Stripe payments works with one-time payment and subscription plans.

Setting up Stripe payments requires several steps, which are explained in detail below.

Requirements

Stripe only works over an encrypted connection, so you need an SSL certificate for your site and serve pages through HTTPS.

Setup Stripe Handler

After installing the Add-on, open Add-ons → PaidListings → Payment Handlers → Stripe.

Setting up the Stripe Handler will require copying keys from your Stripe account dashboard to the Stripe Handler in PaidListings, and vice-versa.

Stripe Publishable and Secret Keys

The first step is to copy the Stripe API Publishable and Secret Keys from the Stripe Dashboard to the Stripe Handler dialog. These keys allow the Add-on to communicate with your Stripe account through API requests. Go to Stripe Dashboard → Developers → API Keys, and there under Standard Keys you can find the two values Publishable Key and Secret Key.

Stripe dashboard API keys
Stripe dashboard API keys

Copy these values to the corresponding settings in Add-ons → PaidListings → Payment Handlers → Stripe as shown below.

Add-on Stripe keys configuration
Add-on Stripe keys configuration
Test Mode
To try the payment handler using Stripe's testing credit cards, set it to Sandbox

In the dialog there are settings for Test Publishable Key and Test Secret Key. These allow you to make payments with testing credit cards. If you want to setup the test payments you will go back to the Stripe Dashboard and in the API Screen click on View test data to toggle the test keys and copy those back to the Stripe Handler dialog.

Stripe dashboard API test keys
Stripe dashboard API test keys

Stripe Webhook

To complete the setup you need to create a new webhook in the Stripe Dashboard that will allow Stripe to send requests to your site that will be processed by the Add-on. These allow the Add-on to process orders on successful payments and to send the necessary notifications to your clients.

Open the Webhooks tab in Stripe Workbench and create an event destination. Select events from Your account, choose the Snapshot payload format, and use Webhook endpoint as the destination type. Older Stripe dashboards call this Add endpoint.

Choose the API version that matches your checkout:

JReviews webhook URL Stripe API version
Webhook URL for EarlyAccess 2025-07-30.basil
Legacy Webhook URL 2019-08-14

The webhook API version controls the payload Stripe sends. It is separate from the API version used by outgoing requests. Use the matching version above rather than automatically selecting Stripe's newest version.

Open Add-ons → PaidListings → Payment Handlers → Stripe to copy the webhook URL. For the modern checkout, copy Webhook URL for EarlyAccess. The other Webhook URL is for the legacy checkout. Use the event list beside the URL you copied.

Stripe payment handler webhook URL
Stripe payment handler webhook URL

For Webhook URL for EarlyAccess, select these events:

  • checkout.session.completed
  • invoice.paid
  • customer.subscription.created
  • invoice.payment_failed
  • invoice.upcoming

For the legacy Webhook URL, select these events instead:

  • customer.subscription.created
  • invoice.upcoming
  • invoice.payment_succeeded
  • invoice.payment_failed
  • charge.succeeded

When switching checkout implementations, update both the endpoint URL and its selected events. Sending the legacy event list to the Early Access URL does not complete the modern setup.

Save the endpoint. At this point you'll be able to view the Signing Secret value shown below.

Stripe dashboard signing secret
Stripe dashboard signing secret

You need to copy this value to the Stripe Handler dialog in PaidListings.

Test Mode
Create a separate webhook endpoint in your Stripe sandbox or test mode. Use the same event list and API version, then copy that endpoint's signing secret into Test Webhook Signing Secret Key in JReviews.

Strong Customer Authentication (SCA)

This step is important if you accept payments from European clients. The new rule coming into effect on September 14, 2019, as part of PSD2 regulation in Europe, will require changes to how your European customers authenticate online payments. Card payments will require a different user experience, namely 3D Secure, to meet SCA requirements. Transactions that don't follow the new authentication guidelines may be declined by your customers' banks.

The Stripe Handler already takes care of SCA in the payment flow and will allow clients to perform the 3D secure authentication. However, for subscriptions that use recurring payments that may charge the client while not online, some banks may require re-authentication by the user. Stripe has made it easy to comply with this requirement through email and a hosted Stripe page.

Enabling Stripe 3D Secure Reauthentication Emails

The first step to enable re-authentication emails is to go to Stripe Dashboard → Settings → Stripe apps → Billing - subscriptions & emails.

Find the Manage payments that require 3D Secure section and enable Send a Stripe-hosted link for cardholders to authenticate when required. You can also enable the reminder emails and add several reminders if needed.

Stripe SCA reuthentication emails
Stripe SCA reuthentication emails

Customizing Stripe Checkout

The Stripe handler uses the Stripe-hosted checkout experience so payments happen at Stripe, meeting the most stringent security requirements. You can customize the checkout page directly in your Stripe dashboard branding page where you can upload a logo and set the colors you want to use for the checkout page and Stripe emails.

Click the above link to go straight to the branding page, or you can also find the page in Stripe Dashboard → Settings → Stripe apps → Checkout - checkout settings.

Then find Appearance, under Customize Checkout.

Notifications

Open Add-ons → PaidListings → Email Notifications to configure the templates and recipients. Enable the notifications you want to send. User notifications go to the order owner; administrator notifications use the email addresses configured in their templates.

Subscription notifications cover:

  • A new subscription.
  • A successful payment, including the first payment and later automatic renewals.
  • A failed payment attempt.
  • An upcoming payment, when Stripe sends its invoice.upcoming event.
  • Cancellation through My Account.

Upcoming-payment emails are optional notices about the next automatic charge. Stripe controls when it sends the event. Subscriptions auto-renew, so they do not receive the one-time-plan expiration reminders. A failed payment attempt does not immediately remove the listing's remaining paid access.

Stripe's own billing emails are configured separately in Stripe. Review both sets of settings to avoid sending duplicate customer notices.

Payments with Test Cards

You can test the payments without using a real credit card. To do this you need to change the Stripe Handler State setting to Sandbox. Make sure you've also followed the steps above to complete the settings for the Test Publishable Key, Test Secret Key, and Test Webhook Signing Secret Key.

Stripe provides a list of test card numbers you can use.

Finally, remember to switch the State setting back to Enabled when you are done