Marketplace API / Mutations

removeStripePaymentMethod

Removes one of the viewer's saved payment methods. It disappears from Viewer.stripePaymentMethods, and if it was the default there is no default until the viewer chooses another. Returns UserInputError when the id is not one of the viewer's saved payment methods.

Requires a client key with one of these scopes: checkout:payments:manage checkout:paymentMethods:manage
removeStripePaymentMethod(
  input: RemoveStripePaymentMethodInput!
): RemoveStripePaymentMethodPayload!

Arguments

ArgumentTypeDescription
inputRemoveStripePaymentMethodInput!The saved payment method to remove.

Return type

RemoveStripePaymentMethodPayload!