Anchor to customerPaymentMethodCreditCardUpdatecustomer
mutationcustomer Payment Method Credit Card Update
Requires access scope. Also: Requires scope.
Updates an existing vaulted credit card payment method for a customer, including billing address and card details. Requires a valid cardserver session from a PCI-compliant environment. Use this when a customer's card details have changed (e.g., new expiration date or replacement card) and ongoing subscriptions or saved payment methods need to be updated.
Anchor to Arguments
Arguments
- billingAddress (MailingAddressInput!)
- id (ID!)
- sessionId (String!)
- Anchor to billingAddressbilling•Mailing
Address Address Input! required The billing address.
- •ID!required
The ID of the customer payment method.
- Anchor to sessionIdsession•String!
Id required The Cardserver session ID.
Was this section helpful?
Anchor to CustomerPaymentMethodCreditCardUpdatePayload returnsCustomer Payment Method Credit Card Update Payload returns
- customerPaymentMethod (CustomerPaymentMethod)
- processing (Boolean)
- userErrors ([UserError!]!)
- Anchor to customerPaymentMethodcustomer•Customer
Payment Method Payment Method The customer payment method.
- Anchor to processingprocessing•Boolean
If the card verification result is processing. When this is true, customer_payment_method will be null.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?