Skip to main content
Vercel can give your functions an OIDC token for the project. Dodo Payments trusts this token through a vercel provider.

Provider Settings

The team slug has lowercase letters, digits, and hyphens only.

Required Claims

The mapping must pin both owner_id (the team id) and project_id. Add environment to limit the trust to one environment:

Project Configuration

  1. In the Vercel project, open Settings → Security and turn on Secure backend access with OIDC federation.
  2. Select the Team issuer mode.
  3. Add DODO_PAYMENTS_IDENTITY_PROVIDER_ID with the value wip_... to the project environment variables.

Token Audience

The default aud claim of a Vercel OIDC token is https://vercel.com/<team_slug>. Dodo Payments does not accept this audience. Use getVercelOidcToken from the @vercel/oidc package with the audience option. Vercel then gives a token with the Dodo Payments audience.
Do not use the vercel() SDK helper with a vercel provider. The helper sends the token that has the default Vercel audience, and the exchange fails.

SDK Usage

The SDK gives the default Dodo Payments audience to the provider function. Request the Vercel token with this audience:
TypeScript
Refer to SDK Usage for the other languages.
Last modified on October 28, 2026