How to set up online payment in Simple Bike Rental

Last updated 16 August 2025
3 minutes read

Set up online payment (Stripe)

In this tutorial, we’ll learn how to set up online payment with Stripe for the Simple Bike Rental Pro WordPress plugin.

After activating the Pro version, you can set up the online payment system by going to the Bicycles → Settings section. Here, you will find the following fields:

stripe setting - simple bike rental pro

Let’s take a look at them one by one.

Activate online payment

Enable this option to activate online payments. Once activated, the user will need to complete the payment through Stripe to confirm the reservation.

Payment currency

Choose the currency in which you will receive payments (e.g., Euro, USD, etc.). It’s important that it matches the one set up in your Stripe account.

Payment Page

The page where the booking summary will be displayed, along with the payment button. On this page, you need to enter the shortcode [simpbire_payment]. Create a new “Payment” page and insert the shortcode within it.

shortcode on the “payment” page

Post-payment “Thank you” page

The page displayed to the user after a successful payment. On this page, you need to enter the shortcode [simpbire_success]. Create a new page, for example, “Payment confirmed”, and insert the shortcode within it.

Payment Confirmation Page

Stripe Public/Secret Key

The public key of your Stripe account is used to initiate the payment process. The secret key is used to communicate with Stripe securely.

You can find it in the Stripe dashboard, under the DevelopersAPI Keys section

Stripe Webhook Secret Key

The secret key for the Webhook, required to receive payment confirmations from Stripe. You can get it by creating a webhook in your Stripe dashboard, under DevelopersWebhook

The Stripe webhook allows your website to be notified when a payment has been successfully completed.

Although Simple Bike Rental Pro works even without enabling the webhook, we strongly recommend activating it. Why?

Because in rare cases—like when an error occurs during the redirect from Stripe back to your site—the booking might not update correctly, even if the payment was successful. This could leave the reservation in a “pending payment” state.

By enabling the webhook, you ensure:

  • The booking is automatically marked as confirmed once Stripe processes the payment.
  • Email notifications are sent regardless of whether the user returns to the site.
  • Greater reliability and accuracy in booking management.

Create the new webhook:

1 – Copy the Webhook URL

https://yourdomain.com/wp-admin/admin-ajax.php?action=simpbire_webhook_stripe

Replace yourdomain.com with your actual domain.

2 – Log in to Your Stripe Dashboard

  • Go to dashboard.stripe.com.
  • Select the project used for your plugin.
  • From the left sidebar, navigate to Developers → Webhooks.

3 – Create a New Endpoint

  • Click “Add endpoint”.
  • Paste the Webhook URL copied in step 1.
  • Under Events to send, select only: checkout.session.completed
  • Click “Add endpoint” to save.

4 – Copy the Webhook Secret

Once the endpoint is created, Stripe will show you a Signing secret.

  • Copy it.
  • Go back to your WordPress dashboard → Plugin Settings
  • Paste it into the Stripe Webhook Secret field.
  • Save the settings.

5 – Test the Integration

Make a test booking and complete the payment. Verify that:

  • The booking is marked as completed in the admin panel.
  • The user is redirected to the thank-you page.
  • Stripe does not remove the webhook anymore (as long as the server returns HTTP 200).

Test Mode Tips

You can use Stripe test mode with the test card:

4242 4242 4242 4242
Expiration date: any future date
CVC: any 3 digits

This is all you need to set up online payment.