Skip to main content
Anchor to customerPaymentMethodRemoteCreate

customerPaymentMethodRemoteCreate

mutation

Requires write_customers access scope. Also: Requires write_customer_payment_methods scope.

Creates a customer payment method using identifiers from remote payment gateways like Stripe, Authorize.Net, or Braintree. Imports existing payment methods from external gateways and associates them with Customer objects in Shopify.

The operation processes payment methods asynchronously. The returned CustomerPaymentMethod initially has incomplete details while Shopify validates and processes the remote gateway information. Use the customerPaymentMethod query to retrieve the payment method status until all details are available or the payment method is revoked.

Learn more about migrating customer payment methods from remote gateways.

ID!
required

The ID of the customer.

CustomerPaymentMethodRemoteInput!
required

Remote gateway payment method details.


Was this section helpful?

Anchor to CustomerPaymentMethodRemoteCreatePayload returnsCustomerPaymentMethodRemoteCreatePayload returns

Anchor to customerPaymentMethodcustomerPaymentMethod
CustomerPaymentMethod

The customer payment method. Note that the returned payment method may initially be in an incomplete state. Developers should poll this payment method using the customerPaymentMethod query until all required payment details have been processed.

[CustomerPaymentMethodRemoteUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?