Add Stripe to your app with processor tokens (beta)
Use Stripe with Plaid Auth to send and receive payments
Stripe processor tokens are in beta and will replace bank account tokens. To use processor tokens during the beta period, contact your Plaid account manager to enable them for your account. Otherwise, use the legacy Stripe integration with bank account tokens until processor tokens are generally available.

Plaid and Stripe have partnered to offer money movement without the need to handle an account or routing number. Use Plaid Link to authenticate your user's account and create a Plaid processor token, which you pass to Stripe to accept ACH Direct Debit payments, save bank accounts for future payments, or add payout bank accounts for Connect.
When you pass a processor token to Stripe, Stripe retrieves the account and routing number directly from Plaid. For Stripe's side of the integration, see Stripe's guide, Use Plaid processor tokens with ACH Direct Debit. If you can't view the guide, contact Stripe to request access.
Getting Started
You'll first want to familiarize yourself with Plaid Link, a drop-in client-side integration for the Plaid API that handles input validation, error handling, and multi-factor authentication.
Your users will use Link to authenticate with their financial institution and select the depository account they want to use for ACH Direct Debit. From there, you'll receive a Plaid access_token and a processor_token, which lets you create PaymentMethods and confirm payments through Stripe's API.
Instructions
Set up your Plaid and Stripe accounts
You'll need accounts at both Plaid and Stripe to use the Plaid Link + Stripe integration.
First, sign up for a Stripe account if you do not already have one. In the Stripe Dashboard, go to Settings → Payment Methods and enable ACH Direct Debit.
If you do not have a Plaid account, create one.
Complete your Plaid application profile and company profile
Complete your Plaid application profile and company profile in the Dashboard, which involves filling out basic information about your app, such as your company name and website. This step helps your end users learn how your product uses their bank information and is also required for connecting to some banks.
Then, in the Link customization UI, select the use cases you will use Stripe for, so that Plaid can request the appropriate authorization and consent from your end users.
Create a link_token
In order to integrate with Plaid Link, you will first need to create a link_token. A link_token
is a short-lived, one-time use token that is used to authenticate your app with Link. To create one,
make a /link/token/create request with your client_id, secret, and a few other
required parameters from your app server. For a full list of parameters, see the /link/token/create reference.
To see your client_id and secret, visit the Plaid Dashboard.
Set the webhook field so that Plaid can tell you when an Item needs attention, such as when the account number changes or the user revokes access. To learn which webhooks to handle and how, see Write server-side handler. If you use Automated Micro-deposits, Plaid will also send AUTOMATICALLY_VERIFIED when the account is verified.
app.post('/api/create_link_token', async function (request, response) {
// Get the client_user_id by searching for the current user
const user = await User.find(...);
const clientUserId = user.id;
const linkTokenRequest = {
user: {
// This should correspond to a unique id for the current user.
client_user_id: clientUserId,
},
client_name: 'Plaid Test App',
products: ['auth'],
language: 'en',
webhook: 'https://webhook.example.com',
redirect_uri: 'https://domainname.com/oauth-page.html',
country_codes: ['US'],
};
try {
const createTokenResponse = await client.linkTokenCreate(linkTokenRequest);
response.json(createTokenResponse.data);
} catch (error) {
// handle error
}
});
Integrate with Plaid Link
Once you have a link_token, all it takes is a few lines of client-side JavaScript to launch Link.
In the onSuccess callback, send the public_token and the selected account_id to your server, which exchanges the public_token for a Plaid access_token and creates a processor token.
<button id="linkButton">Open Link - Institution Select</button>
<script src="https://cdn.plaid.com/link/v2/stable/link-initialize.js"></script>
<script>
let linkHandler;
(async function(){
linkHandler = Plaid.create({
// Make a request to your server to fetch a new link_token.
token: (await $.post('/create_link_token')).link_token,
onLoad: function() {
// The Link module finished loading.
},
onSuccess: function(public_token, metadata) {
// The onSuccess function is called when the user has
// successfully authenticated and selected an account to
// use.
//
// This example assumes "Account Select" is set to
// "Single select", so metadata.accounts[0] is the
// account the user chose.
//
// const account = metadata.accounts[0];
// sendDataToBackendServer({
// public_token: public_token,
// account_id: account.id,
// });
},
onExit: function(err, metadata) {
// The user exited the Link flow.
if (err != null) {
// The user encountered a Plaid API error
// prior to exiting.
}
// metadata contains information about the institution
// that the user selected and the most recent
// API request IDs.
// Storing this information can be helpful for support.
},
});
})();
// Trigger the authentication view
document.getElementById('linkButton').onclick = function() {
linkHandler.open();
};
</script>See the Link parameter reference for complete documentation on possible configurations.
Plaid.create accepts one argument, a configuration Object, and returns an Object with four functions, open, exit, submit, and destroy. Calling open will display the "Institution Select" view, calling exit will close Link, and calling destroy will clean up the iframe.
Write server-side handler
The Link module handles the entire onboarding flow securely and quickly, but does not actually retrieve account data for a user. Instead, the Link module returns a public_token and an accounts array, which is a property on the metadata object, via the onSuccess callback. Exchange this public_token for a Plaid access_token using the /item/public_token/exchange API endpoint.
The accounts array will contain information about bank accounts associated with the credentials entered by the user, and may contain multiple accounts if the user has more than one bank account at the institution. In order to avoid any confusion about which account your user wishes to use with Stripe, it is recommended to set Account Select to "Single select" in the Plaid Dashboard. When this setting is selected, the accounts array will always contain exactly one account.
Once you have identified the account you will use, call /processor/token/create with the account_id, the access_token, and processor set to stripe. You'll pass the returned processor_token to Stripe, which uses it to retrieve the account and routing numbers from Plaid.
If you use micro-deposits, create the processor token after the account is verified. Until then, /processor/token/create returns a PRODUCT_NOT_READY error. For details, see Automated Micro-deposits and Same-Day Micro-deposits.
If you use Database Auth with your own evaluation logic, call /auth/get and check verification_status before passing the processor token to Stripe.
Save the access_token and processor_token in a secure datastore. You may need the access_token for later calls on the Item, such as creating a link_token for update mode, and the processor_token to change Stripe's access to the account or the token's webhook URL. For Stripe API keys, follow Stripe's key management best practices.
const {
Configuration,
PlaidApi,
PlaidEnvironments,
ProcessorTokenCreateRequest,
} = require('plaid');
// Change sandbox to production when you're ready to go live!
const configuration = new Configuration({
basePath: PlaidEnvironments[process.env.PLAID_ENV],
baseOptions: {
headers: {
'PLAID-CLIENT-ID': process.env.PLAID_CLIENT_ID,
'PLAID-SECRET': process.env.PLAID_SECRET,
'Plaid-Version': '2020-09-14',
},
},
});
const plaidClient = new PlaidApi(configuration);
try {
// Exchange the public_token from Plaid Link for an access token.
const tokenResponse = await plaidClient.itemPublicTokenExchange({
public_token: publicToken,
});
const accessToken = tokenResponse.data.access_token;
// Create a processor token for a specific account id.
const request: ProcessorTokenCreateRequest = {
access_token: accessToken,
account_id: accountID,
processor: 'stripe',
};
const processorTokenResponse = await plaidClient.processorTokenCreate(
request,
);
const processorToken = processorTokenResponse.data.processor_token;
} catch (error) {
// handle error
}
For a valid request, the API will return a JSON response similar to:
{
"processor_token": "processor-sandbox-0asd1-a92nc",
"request_id": "[Unique request ID]"
}For possible error codes, see the full listing of Plaid error codes.
A processor token does not expire. After Stripe creates a PaymentMethod from the token, use that PaymentMethod for future payments instead of creating a new processor token. A processor token works with only one Stripe account, so to use the same bank account with a different Stripe account, create a new processor token.
The PaymentMethod should keep working unless one of these happens:
- The account or routing number changes. When you receive the
DEFAULT_UPDATEwebhook, create a new processor token and pass it to Stripe to replace the existing PaymentMethod. - The user revokes Plaid's access. When you receive the
USER_PERMISSION_REVOKEDorUSER_ACCOUNT_REVOKEDwebhook, send the user through update mode, then create a new processor token and pass it to Stripe to replace the existing PaymentMethod.
At some institutions, the user's consent has an expiration date. Plaid will send a PENDING_DISCONNECT webhook one week before the expiration date. When you receive this webhook, send the user through update mode. If the user doesn't complete update mode before the expiration date, the account and routing number may stop working. Plaid will then send an ITEM: ERROR webhook with the ITEM_LOGIN_REQUIRED error. When you receive it, send the user through update mode, then create a new processor token and pass it to Stripe to replace the existing PaymentMethod.
Use the processor token with Stripe
Pass the processor_token to Stripe to accept an ACH Direct Debit payment with a PaymentIntent, save the bank account with a SetupIntent, or add a payout bank account to a connected account. For each of these flows, follow Stripe's guide, Use Plaid processor tokens with ACH Direct Debit. If you can't view the guide, contact Stripe to request access.
You are responsible for collecting and storing the customer's ACH Direct Debit mandate. For details, see ACH Direct Debit mandates in the Stripe documentation.
Migrating from bank account tokens
If your integration calls /processor/stripe/bank_account_token/create, switch it to /processor/token/create with processor set to stripe by July 12, 2027.
| Bank account tokens | Processor tokens | |
|---|---|---|
| Plaid endpoint | /processor/stripe/bank_account_token/create | /processor/token/create with processor set to stripe |
| Token returned | stripe_bank_account_token (btok_...) | processor_token (processor-production-...) |
| Token lifetime | Single use; attach it to a Stripe Customer or Custom account right away | Does not expire; Stripe creates a PaymentMethod from it, and you reuse the PaymentMethod |
| How Stripe gets account details | Plaid sends the account and routing number to Stripe to create the token | Stripe calls Plaid with the processor token when you confirm a PaymentIntent or SetupIntent |
| Stripe API calls | Create a bank account on a Customer or Custom account from the token, then use Stripe's manual bank account migration flow to reach PaymentIntents | Pass the token in payment_method_data[us_bank_account][external_token] on PaymentIntents and SetupIntents, or in external_account[external_token] for Connect payouts |
You do not need to send existing users back through Link. Bank accounts and PaymentMethods you already created in Stripe from bank account tokens are unaffected. If you charge them through Stripe's Charges and Sources API, see the changelog for that API's deprecation.
For linked accounts you have not yet added to Stripe, you can create a processor token from the access_token and account_id you already have, as long as the Item is healthy. If the Item is in an ITEM_LOGIN_REQUIRED state or the user has revoked access, send the user through update mode first.
To roll out the change:
- Add the
/processor/token/createcall to your server-side handler, alongside the existing bank account token call. - Pass the
processor_tokento Stripe instead of creating a bank account from the bank account token, as described in Use the processor token with Stripe. - Collect
mandate_data[customer_acceptance]in your checkout or account-linking flow, and store the mandate. If you use Stripe's Charges API, this is a new requirement. - If you use micro-deposits, create the processor token after the account is verified. If you use Database Auth, check verification status before passing the processor token to Stripe.
- Test end to end with Plaid Sandbox and Stripe Sandboxes, as described in Test with Sandbox credentials.
- Remove the
/processor/stripe/bank_account_token/createcall from your code.
Launching to Production
Test with Sandbox credentials
Test the integration with Plaid Sandbox and Stripe Sandboxes.
Configure a custom Sandbox user whose account and routing numbers match Stripe's test account numbers for successful and failed payments.
Then create a public_token with /sandbox/public_token/create. Set institution_id to a non-OAuth Sandbox institution, such as First Platypus Bank (ins_109508), because custom users may not work with OAuth institutions. Set initial_products to ["auth"], options.override_username to your custom Sandbox user, and options.override_password to any non-empty value. Exchange the public_token for an access_token, call /accounts/get to get the account_id, and call /processor/token/create with processor set to stripe.
const request: SandboxPublicTokenCreateRequest = {
institution_id: 'ins_109508',
initial_products: [Products.Auth],
options: {
override_username: 'custom_stripe_success',
override_password: 'pass_good',
},
};
try {
const response = await plaidClient.sandboxPublicTokenCreate(request);
const publicToken = response.data.public_token;
} catch (error) {
// handle error
}Use the resulting processor_token in a Stripe Sandbox request to confirm a PaymentIntent or SetupIntent.
You can also run the full flow in Sandbox: launch Link with a link_token created in the Sandbox environment, sign in with your custom user's credentials, exchange the public_token, and call /processor/token/create with processor set to stripe.
Get ready for production
Your account is immediately enabled for the Sandbox environment (https://sandbox.plaid.com), which allows you to test with Sandbox API credentials. To move to Production, request access from the Dashboard and make sure Auth is enabled. You'll also need Stripe live-mode API keys.
Example code in Plaid Pattern
For a real-life example of an app that integrates a processor partner, see the Node-based Plaid Pattern Account Funding sample app. Pattern Account Funding is a sample account funding app that creates a processor token to send to your payment partner. To use its processor token creation call in items.js with Stripe, set processor to stripe.
Troubleshooting
Stripe returns plaid_invalid_token
Stripe returns plaid_invalid_token when it can't use the processor token. The message includes the underlying Plaid error code:
{
"error": {
"type": "invalid_request_error",
"code": "plaid_invalid_token",
"message": "The provided Plaid processor token is invalid. Verify the token and try again. Plaid error: INVALID_PROCESSOR_TOKEN"
}
}Common causes are an environment mismatch, such as a Plaid Sandbox token sent to Stripe live mode, or a token created with a processor value other than stripe. To look up the Plaid error code in the message, see Errors.
Support and questions
Find answers to many common integration questions and concerns, such as pricing and Sandbox usage, in the docs.
If you're still stuck, open a support ticket describing the issue you're experiencing. For questions about Stripe's APIs, mandates, or Stripe Sandboxes, contact Stripe Support.
