Schema Documentation
setDefaultPaymentMethod
Description
The setDefaultPaymentMethod mutation
Response
Returns a SetDefaultPaymentMethodPayload
Arguments
Name | Description |
---|---|
input - SetDefaultPaymentMethodInput! | Input for the setDefaultPaymentMethod mutation |
Example
Query
mutation setDefaultPaymentMethod($input: SetDefaultPaymentMethodInput!){ setDefaultPaymentMethod(input: $input){ clientMutationIdstatustoken { ...PaymentTokenFragment } }}
Variables
{"input":SetDefaultPaymentMethodInput}
Response
{"data":{"setDefaultPaymentMethod":{"clientMutationId":"abc123","status":"abc123","token":PaymentToken}}}