Stripe is one of several payment gateways that you can setup in Affino.
Stripe is the only payment gateway we recommend for continuous credit and debit card payments.
In this guide, you will learn how to set up Stripe as one of the many payment options available.
When this is done, your clients will be able to purchase products using Stripe.
There are three levels of integration with Stripe:
All of these will need varying levels of setup within Stripe itself.
To setup your Stripe payment gateway (or view your current payment gateways) access the Payment Gateway screen:
Stripe Help: stripe.com/docs/keys#test-live-modes
Stripe Help: stripe.com/docs/stripe-js/v2#setting-publishable-key
Help on API Keys: stripe.com/docs/keys
Copy-paste the Webhook URL into Stripe so that it generates the Webhook Signing Secret. After this, place the Stripe Webhook Signing Secret and save.
Stripe Help: stripe.com/docs/webhooks
Further notes >
Orders will be cancelled for the following events:
On Stripe, set the following Event Types:
You can retrieve your endpoint’s secret from your Stripe Dashboard by going to Developer > Webhooks:
Add a new Endpoint:
Insert the Webhook URL into the Endpoint URL field:
Insert the Stripe generated endpoint’s secret
- into the Webhook Signing Secret field:
Stripe Help: stripe.com/docs/webhooks/signatures
Stripe Tax Rate ID and Affino Tax Rule External ID
Stripe: Dashboard > Tax Rates
Affino: Control > Commerce > Tax Rules
If you are setting up a Subscription, then please bear in mind that you need to create a new Tax Rate in Stripe (dashboard.stripe.com/tax-rates):
- and subsequently copy and paste the Tax Rate ID from Stripe:
- to the Tax Rule External ID in Affino:
Note: Tax in Stripe must be set up as Exclusive to match Affino.
Currently, Affino does not support Inclusive tax rates.
Stripe help: stripe.com/docs/billing/taxes/tax-rates
In order for you to sell a subscription in Affino with Stripe, you must first create a product in your Stripe dashboard:
After it has been created, copy and paste the product API Price ID:
- and place it in the catalogue item External ID field:
Please note: If you have catalogue items with several prices (and currencies) you will need to:
Currently, you will need to create a separate catalogue item, one for each price/currency (with a matching Stripe price plan) as we do not have an External ID field in the Catalogue Item for each row within the price matrix to match each Stripe Price ID.
Stripe help: stripe.com/docs/billing/prices-guide
Select to pass the Renewal Catalogue Item's External ID and Tax Rule External ID to Stripe if a Renewal Catalogue Item exists.
If not selected, the Renewal Catalogue Item will still be used to generate the renewal order but Stripe will continue to renew on the existing price and tax rule.
NOTE: These ID's need to match the ones in Stripe.
You have two Integration Script Options:
Select one of the above if you wish to run custom code / functionality.
You have now added Stripe as a payment gateway in Affino.
Meetings:
Google Meet and Zoom
Venue:
Soho House, Soho Works +
Registered Office:
55 Bathurst Mews
London, UK
W2 2SB
© Affino 2024