This document explains how to configure payment provider Stripe.
Prerequisites
To configure Stripe the following details are required:
- Publishable API key
- Secret API Key
- Webhook key
Publishable API Key
The Publishable Key is used to verify the authenticity of the messages coming from Stripe
- On your Stripe Dashboard click on Developers in the bottom left corner
- Click on the tab API keys
- If no keys are visible, create a new set of keys
- Copy the Publishable key
- Paste the Publishable key in the Publishable Key field
- Copy the Secret Key
- Paste the Secret Key in the Secret Key field
Webhook key
- On your Stripe Dashboard click on Developers in the bottom left corner
- Click on the tab Webhooks
- Click on the button Add endpoint
- Set the Endpoint URL to https://YOUR_DOMAIN/notify and replace YOUR_DOMAIN with the domain where the website is
- Enter a description if you like
- Set Listen to on Events on your account
- Set Version to Your current version
- Select the following events to listen to:
- checkout.session.async_payment_failed
- checkout.session.async_payment_succeeded
- checkout.session.completed
- checkout.session.expired
- Click on Add endpoint
- In the list of Webhooks, click on the URL of the endpoint just created
- Click on the word Reveal in the field Signing secret
- Copy the signing secret
- Paste the signing secret in the Webhook key field
A description is required to be able to make a payment. The description will help customers identify their payment.
Order Numbers
You can choose which number is used as order number, by default RO Payments uses the order number but you can change this to be the order ID.