Configure Stripe

High risk of ban

Make sure that your Stripe account has all the information they required or you might get suspended or banned from Stripe. I don’t provide any kind of support if your account gets limited or suspended, so use Stripe with care! If you get chargebacks you will incur in a ban sooner.

Go to your website admin panel in the payment gateway settings

Alt

Then go to “Api keys” and create a new api key.

Alt

Select “Build your own interation” and then click on “Continue” (at the bottom).

Alt

Give it the name your prefer, for example “item shop”:

Alt

And then set only “Checkout Session” to Write.

Alt

Finally click on “Create key” at the bottom.

Alt

Copy and save somewhere the created key because you will not be able to see it again!

Now go to website dashboard and click on “Payment gatewaays” under the voice “Settings”.

Alt

You must copy these two keys from Stripe: publishable key (you can copy it by clicking on the key) and the restricted key you have just created (you cannot see the key anymore on Stripe dashboard, so you should have noted it somewhere when you have created it!).

Alt

Now write the two keys in the dashboard and save. Be carefull not to include white spaces at the end or at the beginning of the key!

Alt

Go back to Stripe dashboard and go to “Webhooks” and click on “Add endpoint”.

Alt

Configure it as follows:

Alt

As endpoint url you must write

https://yourwebsite.com/payment-postback/stripe

Of course change “yourwebsite.com” with your actual domain name.

Then where it says “Select events to listed to” you need to select only “checkout.session.completed”.

Alt Alt

Finally click on “Add endpoint” to save.

Alt

Click on the endpoint you have just created to open it

Alt

Click on “Reveal” under “Signing secret”

Alt

Copy the secret and write it in the Payment gateway setting of the dashboard

Alt Alt

Do not forget to save! Save button is at the bottom of the page.

Alt

Now you have configured stripe!