Configuration
First, you will need to create a Stripe. account. Once you have created your account, you will need to get your credentials from Stripe. In the Admin Panel and under “Settings” click on “Payment Providers”. You will be redirected to the payment providers settings page. Click on “Stripe” and using the toggle “is active” you can enable/disable the payment provider. (Don’t forget to click “Save” after you make any changes). Once you enable Stripe, you will need to configure the credentials for it. To do that, click on the payment provider you want to configure, then click on “Edit credentials”. You will be redirected to the payment provider credentials page. You will need to copy some values from your Stripe account to your application to be able to connect it. To do that please follow the following steps:- Login to Stripe Dashboard.
- Depending on whether you want to use the test or live environment, you might need to tick the “Test mode” switch in the top right corner.
- On the top menu, click on “Developers” > “API keys”. Copy the “Publishable key” and enter it into the field in the form.
- On the same page, click “Reveal live key token” and copy the “Secret key” and enter it into the field in the form.
-
On the same page, click on “Webhooks” tab. Click on “Add endpoint” and enter the URL below.
-
Click on “Select events” then select all the following events:
- NCheck all the
payment_intent.xyzevents. - Check all the
customer.xyzevents. - Check all the
invoice.xyzevents. - Check the
charge.refundedevent. - Check the
charge.failedevent.
- NCheck all the
- Click on “Add endpoint” and copy the generated webhook signing secret and enter it into the field in the form.
- Click on “Save” to save your changes.
TIP: All the above steps are also available to you inside your admin panel on the right hand side of the credentials page as shown in the image above.