Set up the Stripe integration to access commerce data from customers who use Stripe to accept payments.
Our integration uses Stripe Connect to establish OAuth connections to Stripe, so you'll need to register as a Stripe Connect platform as described below. Connected Standard accounts, which represent your SMB customers in Stripe's API, are created automatically as part of the Link authorization flow.
Test and live integrations
This page explains how to set up both the Stripe Test and the Stripe integrations (see Available integrations for more details).
To set up the Stripe integration, you'll need to:
- Register as a Stripe Connect platform
- Request read-only permissions
- Configure Stripe Connect and get your credentials
- Add your Stripe Connect credentials to the integration
- Enable the integration
- Check the commerce sync settings
Complete your Connect Platform profile to register for Stripe Connect. When your profile is complete and your business details are approved, you can access your live platform credentials. To access your test credentials, you only need to complete steps 1–6.
Visit Stripe and sign in to your developer account.
In the top menu of the dashboard, click Connect.
Click Get started with Connect.
Select Platform or marketplace in the pop-up window, then click Continue.
The Get started with Connect page is displayed.
Under Complete your platform profile, click Start.
Answer the multiple-choice questions about your business and then submit your responses.
Stripe recommends the optimal type of connected account for your business: either Standard, Express, or Custom. Do not create a connected account, either manually or through the Stripe API. Connected Standard accounts representing your SMB customers will be created automatically as part of the Link flow.
Return to the Get started with Connect page.
Under Add business details to activate your account, click Start now.
Complete the requested information to activate your account. All responses are reviewed by Stripe.
Our integration works with connected Standard accounts only.
Before enabling the live integration, we recommend you contact Stripe Support to request the
read_only scope (permission) for your Stripe Connect platform. The integration only requires read-only access and is configured to request the
read_only scope by default.
If your request is declined, you can configure the integration to request the
read_write scope—see "Add your secure credentials to the integration" for details. However, be aware that only one third-party platform with
read_write access is allowed to connect to your Stripe account.
Configure Stripe Connect to connect to our Stripe integration, and access your Stripe Connect platform credentials (these are your client ID and secret key for either test or live mode).
To access your live credentials in Stripe, you must have added your business details as described in the preceding task.
Go to the Connect settings page.
Use the Test mode switch at the top right to switch between live mode or test mode.
- Enable test mode if you're setting up the Stripe Test integration.
- Enable live mode if you're setting up the Stripe integration.
Enter your Business name in the Business details section.
Next to Appearance, upload your company icon and customize the colors. These settings are used to customize the authentication pages that your SMB customers will see in the Link flow.
Next to OAuth settings, select OAuth for Standard accounts.
Next to Redirects, click Add URI and then enter the following Codat redirect URL:
Copy your client ID from the Integration section and paste it to a text file or similar.
- In test mode, copy the Test mode client ID.
- In live mode, copy the Live mode client ID.
Click Developers > API keys to access your test Secret key (in test mode) or live Secret key (in live mode).
Leave this tab open in your browser so you can use the key in the next task.
If you need to add or change a key in future, search for API Keys from the Stripe Developers Dashboard.
Add your Stripe Connect platform credentials, for test or live mode, to the corresponding integration.
In the Codat Portal:
Select Settings > Commerce.
Click Manage next to the Stripe or Stripe Test integration.
The Integration settings page is displayed.
In the Client ID box, enter your client ID for your Stripe Connect platform.
- For the Stripe Test integration, enter the Test mode client ID.
- For the Stripe integration, enter the Live mode client ID.
In the Secret key box, enter the value of your test key or live key.
Assuming you requested the
read_onlyscope for Stripe Connect, leave the Use read-write scope toggle deselected.
If you're using the
read_writescope (the Stripe default), then select the Use read-write scope toggle.
Under Access to company data, configure the sync frequency for the integration. Select Allow one-off data sync when company authorizes connection or Allow continuous data sync.
In the Codat Portal:
- Select Settings > Commerce.
- Click the toggle next to Stripe Test or Stripe to set the integration to Enabled.
You can also enable this integration directly from its Integration settings page.
If the integration is enabled successfully, the switch remains set to Enabled. If authentication fails, an error displays and the switch reverts to Disabled. Check that your Stripe Connect platform credentials were entered into the Portal correctly.
Syncing of all commerce data types must be enabled before you can pull commerce transactions from Stripe to Codat. Follow the steps in Commerce sync settings; you only need to do this once.
Test your Stripe integration explains how to use the Stripe Test integration to pull test data into Codat.
Updated 11 days ago