Skip to main content
Docs
Search documentation
Ask AI
Dashboard
Dashboard
Sign Up
Sign Up
Select your SDK
Next.js
React
Expo
JavaScript
Express
React Router
Android
Astro
iOS
Nuxt
Vue
Chrome Extension
Fastify
Remix
TanStack React Start
JS Backend SDK
C#
Go
Java
Python
Ruby / Rails / Sinatra
Angular
Community
Elysia
Community
Hono
Community
Koa
Community
SolidJS
Community
Svelte
Community
Redwood
Community
Rust
Community
PHP
Tauri
Community
Next.js
React
Expo
JavaScript
Express
React Router
Android
Astro
iOS
Nuxt
Vue
Chrome Extension
Fastify
Remix
TanStack React Start
JS Backend SDK
C#
Go
Java
Python
Ruby / Rails / Sinatra
Angular
Elysia
Hono
Koa
SolidJS
Svelte
Redwood
Rust
PHP
Tauri
Guides
Reference
Getting started
Getting started
Authentication flows
User management
Session management
Organization management
Billing management
Account Portal
Customizing Clerk
Overview
Component customization
Theme editor
Build your own UI
Overview
Error handling
Authentication
Organizations
Billing
Checkout with a new payment method
Checkout with an existing payment method
Add a new payment method
Account updates
API keys
Beta
Custom menu items
Email and SMS templates
Localization (i18n)
Clerk Elements
Beta
Securing your app
AI
Development
Clerk Dashboard
How Clerk works
Guides
Customizing Clerk
Build your own UI
Billing
Build a custom flow for adding a new payment method
Learn how to use the Clerk API to build a custom flow for adding a new payment method to a user's account.
This page is available for the following SDKs. Select the SDK you would like to use:
Next.js
React
Feedback
What did you think of this content?
It was helpful
It was not helpful
I have feedback
Last updated on
Feb 27, 2026
GitHub
Edit on GitHub
Support