Marketplace API / Mutations
updateDefaultStripePaymentMethod
Makes one of the viewer's saved payment methods the default. isDefault on Viewer.stripePaymentMethods follows it. Checkout preselects it when the item accepts that method type. Viewer.defaultPaymentCard and the implicit charge fallback consider cards only, so a bank-account default is not used by either. 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:manageupdateDefaultStripePaymentMethod(
input: UpdateDefaultStripePaymentMethodInput!
): UpdateDefaultStripePaymentMethodPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | UpdateDefaultStripePaymentMethodInput! | The saved payment method to make the default. |