Stripe’s products and features allow companies to accept online payments, but offer other reasons to integrate as well. Companies like Baremetrics and Segment build on top of Stripe to provide their services to Stripe accounts with a Standard dashboard.
Building an extension on Stripe consists of four steps:
- Configure OAuth and specify a redirect URI.
- Configure branding settings.
- Create an OAuth link for your users.
- Use the API on behalf of connected accounts.
You’re also required to add business details to activate your account, if you haven’t already.
To get started, visit the Extensions page located in the Developers tab of the Stripe dashboard.
Charging for your application
Your extension’s Stripe account can process its own charges, so you can still charge for your application with
read_only access. After customers connect their Stripe accounts, ask for their payment details and then create a subscription for them in your Stripe account. Make sure to store the created customer ID with the associated Stripe account ID, so that you can track which users are paid and active, and which ones are not.
If you create subscriptions, you can also specify an
application_fee_percent as a fee for your application. This is charged on top of any Stripe fees. Read the Subscriptions documentation to learn more.
Users can disconnect their accounts from your integration at any time. When this happens, Stripe sends an
account.application.deauthorized webhook. You can use this notification to trigger cleanup on your end, such as disabling the user’s account on your site or removing their data.
You can also disconnect accounts from your integration, by making a request to the OAuth deauthorization endpoint.