customerPaymentMethodRemoteCreditCardCreate - admin-graphql - MUTATION
Version: 2024-04
Description:
Create a payment method from a credit card stored by Stripe.
Access Scopes
`write_customers` access scope. Also: Requires `write_customer_payment_methods` scope.
Arguments
-
customerId:
ID! -
The ID of the customer.
-
stripeCustomerId:
String! -
The Stripe Customer ID.
-
stripePaymentMethodId:
String -
The Stripe Payment Method ID. Starting on 2025, stripe_payment_method_id will become mandatory for all API versions.
Returns
-
customerPaymentMethod:
CustomerPaymentMethod
The customer payment method.
-
userErrors:
CustomerPaymentMethodUserError!
The list of errors that occurred from executing the mutation.
Examples