Skip to content
createPaymentMethodSetupIntentMutation
createPaymentMethodSetupIntent: CreatePaymentMethodSetupIntentResult!

Create a SetupIntent for adding a saved card to the viewer's account. The client mounts Stripe Elements in setup mode against the returned clientSecret; on success the card is attached to the viewer's Stripe Customer and listed by Me.paymentMethods.

Returns

CreatePaymentMethodSetupIntentResult!

See CreatePaymentMethodSetupIntentResult for the full shape.

Try it

Example
Query
mutation CreatePaymentMethodSetupIntent {
  createPaymentMethodSetupIntent {
    __typename
  }
}
Variables
{}
POST https://go.sessions.website/api/graphql
createPaymentMethodSetupIntent