Skip to main content
POST
/
payments
/
setup-payment-method
{
  "clientSecret": "<string>",
  "id": "<string>"
}

Body

application/json
metadata
object[]
required

metadata assigned to the object

stripeCustomerId
string
required

the id of the customer

allowedPaymentMethods
string[]
required

the allowed payment methods

Response

clientSecret
string
required

the created intent client secret

id
string
required

the id of the intent