Endpoint

Save Credit Card - Option 2

This guide describes how to securely integrate credit card tokenization into your native mobile app (iOS and Android) using Stripe's mobile SDKs. You will collect the card details, tokenize them securely with our publishable key, and send the resulting payment_method.id to our backend. We will then attach the payment method to the customer in Stripe.

Overview

Your mobile app will:

Our backend will:

  • Use the payment_method.id to securely attach the card to the correct Stripe customer

Request a SetupIntent

GET

/user/setupintent

Setup Intent Client Secret Model data

clientSecret
The client secret to use when confirming the SetupIntent

Response example

Send the resulting payment_method.id to our backend

POST

/user/setupintent

Body

Response example

On successful saving of the payment method, the response contains an empty data object, a success field set to true, and a null value for error. This confirms that the card has been securely saved without returning additional data.