add customer payment method

Collect a payment method / credit card for a customer.

Calling this method creates a short-lived Stripe Checkout Session to allow your customers to enter payment method details. This API will return a Stripe URL to which you should redirect your customers to securely add their credit card information. Upon completion, Stripe will redirect back to the provided URLs.

Path Params
string
required

The customer ID

Body Params
string
required

The url to which to redirect after successful payment method creation

string
required

The url to which to redirect after failed payment method creation

Headers
string
required

Your Kable client ID, found in the dashboard of your Kable account.

string
required

Your LIVE or TEST secret key.

Responses

Language
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json