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. The vercel() helper exchanges the Vercel token at https://oidc.vercel.com/~token for a token with the Dodo Payments audience. You do not have to do more steps.
This exchange is available from these SDK versions: TypeScript 2.59.0, Python 1.125.0, Go v1.125.0, Java 1.125.0, Kotlin 1.125.0, Ruby 2.37.0, PHP 6.34.0, C# 6.43.0, Rust 1.127.0, and the Terraform provider 0.3.2. An older version sends the token with the default Vercel audience, and the exchange fails.

SDK Usage

Refer to SDK Usage for the other languages.
Last modified on October 28, 2026