API authentication methods
Select the API authentication method that works best for your app's use case.
Your app can use one of three methods to authenticate requests to the Stripe API on behalf of your users.
Method | Description | Use cases |
---|---|---|
Platform key Default | Your account’s secret API key makes requests to the Stripe API on behalf of your user’s account. |
|
OAuth 2.0 | Use industry standard OAuth 2.0 to generate access tokens to interact with the Stripe API. Initialize the Stripe SDK with the access token for the account you’re operating on behalf of. |
|
Restricted API key | When a user installs your app, Stripe generates a permissioned, restricted API key that users need to copy and paste into your software to interact with Stripe. |
|
Configure
To configure the API authentication method, edit stripe_
in the app manifest. For setup instructions, refer to the pages linked in the table above.
stripe-app.json
{ "id": "com.example.app", "version": "0.0.1", "name": "Your Stripe App", "distribution_type": "public", "permissions": [], "stripe_api_access_type": "platform" | "oauth" | "restricted_api_key", }