To set up a Stripe payment on the ONe platform, start by adding a webhook to your stripe account to enable the connection between systems.
How to configurate webhooks on Stripe platform?
1. Log in to your account on the stripe platform https://stripe.com/en-pl
2. Click on the "developers" button at the top right of the page
3. Then select "Webhooks" from the menu on the left and after that select "Add endpoint"
4. In this section type the link to your endpoints, depending on the environment where you want to configure STRIPE the links will be different (Preprod/Production)
PREPROD:
https://api-preprod.one.unity.pl/api/v1/payments/integrations/public/stripe/TENANT_NAME/webhook
PROD:
https://api-prod.onecommerce.shop/api/v1/payments/integrations/public/stripe/TENANT_NAME/webhook
NOTE: Instead of "TENANT_NAME" type tenant name of your platform in ONe.
5. Then click "Add events" and find "Payment Intent" section, mark all of events of this section.
6. Finalize adding of webhook by clicking "Add endpoint" button
How to configurate Stripe payment method on ONe platform?
NOTE: Before setting up the Stripe payment method on the ONe platform, you need to set up
a webhook on the Stripe website!
1. Log into Backoffice
2. Click "Configuration tab" then "Payment Methods"
3. Click "Add payment method" and choose "Stripe"
4. Enter the required data of payment method
Webhook secret, Publishable key and Client Secret keys you can find in Stripe platform.
Publishable and Client secrets keys are on main page of Stripe after log in:
To get webhook secret key you have to:
1. Log in into Stripe platform
2. Click on the "developers" button at the top right of the page
3. Then select "Webhooks" from the menu on the left
4. Choose created before webhook
5. Click "Reveal" to get key
Comments
0 comments
Please sign in to leave a comment.