Anchor to customerPaymentMethodCreditCardCreatecustomer
mutationcustomer Payment Method Credit Card Create
Requires access scope. Also: Requires
scope.
Creates a credit card payment method for a customer using a session id. These values are only obtained through card imports happening from a PCI compliant environment. Please use customerPaymentMethodRemoteCreate if you are not managing credit cards directly.
Anchor to Arguments
Arguments
- Anchor to billingAddressbilling•Mailing
Address Address Input!required The billing address.
- Anchor to customerIdcustomer•ID!required
Id The ID of the customer.
- Anchor to sessionIdsession•String!required
Id The Cardserver session ID. Obtained by storing card data with Shopify's Cardsink. Exchanging raw card data for a session ID must be done in a PCI complaint environment.
Was this section helpful?
Anchor to CustomerPaymentMethodCreditCardCreatePayload returnsCustomer Payment Method Credit Card Create Payload returns
- 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?