Skip to main content
Anchor to CustomerPaymentMethod

CustomerPaymentMethod

object

Requires read_customers access scope. Also: Requires read_customer_payment_methods scope.

A customer's payment method.

Anchor to Fields and connectionsFields and connections

•

The customer to whom the payment method belongs.

•
ID!non-null

The ID of this payment method.

•

The instrument for this payment method.

•

The time that the payment method was revoked.

•

The revocation reason for this payment method.

Anchor to subscriptionContractssubscriptionContracts
•

List Subscription Contracts.


Was this section helpful?

•
query

Returns a CustomerPaymentMethod resource by its ID.


Was this section helpful?

•
mutation

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.

Arguments

•

The billing address.

•
ID!required

The ID of the customer.

•
String!required

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.


Fields

Anchor to customerPaymentMethodcustomerPaymentMethod
•

The customer payment method.

•

If the card verification result is processing. When this is true, customer_payment_method will be null.

•

The list of errors that occurred from executing the mutation.

•
mutation

Updates the credit card payment method for a customer.

Arguments

•

The billing address.

•
ID!required

The ID of the customer payment method.

•
String!required

The Cardserver session ID.


Fields

Anchor to customerPaymentMethodcustomerPaymentMethod
•

The customer payment method.

•

If the card verification result is processing. When this is true, customer_payment_method will be null.

•

The list of errors that occurred from executing the mutation.

•
mutation

Creates a PayPal billing agreement for a customer.

Arguments

•

The billing address.

•
String!required

The billing agreement ID from PayPal that starts with 'B-' (for example, B-1234XXXXX).

•
ID!required

The ID of the customer.

•
BooleanDefault:false

Whether the PayPal billing agreement is inactive.


Fields

Anchor to customerPaymentMethodcustomerPaymentMethod
•

The customer payment method.

•

The list of errors that occurred from executing the mutation.

•
mutation

Updates a PayPal billing agreement for a customer.

Arguments

•

The billing address.

•
ID!required

The ID of the customer payment method.


Fields

Anchor to customerPaymentMethodcustomerPaymentMethod
•

The customer payment method.

•

The list of errors that occurred from executing the mutation.

•
mutation

Create a payment method from remote gateway identifiers. NOTE: This operation processes payment methods asynchronously. The returned payment method will initially have incomplete details. Developers must poll this payment method using customerPaymentMethod query until all payment method details are available, or the payment method is revoked (usually within seconds).

Arguments

•
ID!required

The ID of the customer.

•

Remote gateway payment method details.


Fields

Anchor to customerPaymentMethodcustomerPaymentMethod
•

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.

•

The list of errors that occurred from executing the mutation.

•
mutation

Create a payment method from a credit card stored by Stripe.

Arguments

•
ID!required

The ID of the customer.

•
String!required

The Stripe Customer ID.

Anchor to stripePaymentMethodIdstripePaymentMethodId
•

The Stripe Payment Method ID. Starting on 2025, stripe_payment_method_id will become mandatory for all API versions.


Fields

Anchor to customerPaymentMethodcustomerPaymentMethod
•

The customer payment method.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?

•
interface

Was this section helpful?