customerPaymentMethodRemoteCreditCardCreate mutation
Create a payment method from a credit card stored by Stripe.
Required access
write_customers
access scope. Also: You must have access to customers
and customer_payment_methods
.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
customerId
(
ID!
)
required
|
The ID of the customer. |
stripeCustomerId
(
String!
)
required
|
The Stripe Customer ID. |
stripePaymentMethodId
(
String
)
|
The Stripe Payment Method ID. |
Return fields
-
customerPaymentMethod (
CustomerPaymentMethod
)The customer payment method.
-
userErrors (
[CustomerPaymentMethodUserError!]!
)List of errors that occurred executing the mutation.
Create a payment method from a credit card stored by Stripe.
Required access
write_customers
access scope. Also: You must have access to customers
and customer_payment_methods
.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
customerId
(
ID!
)
required
|
The ID of the customer. |
stripeCustomerId
(
String!
)
required
|
The Stripe Customer ID. |
stripePaymentMethodId
(
String
)
|
The Stripe Payment Method ID. |
Return fields
-
customerPaymentMethod (
CustomerPaymentMethod
)The customer payment method.
-
userErrors (
[CustomerPaymentMethodUserError!]!
)List of errors that occurred executing the mutation.
Create a payment method from a credit card stored by Stripe.
Required access
write_customers
access scope. Also: You must have access to customers
and customer_payment_methods
.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
customerId
(
ID!
)
required
|
The ID of the customer. |
stripeCustomerId
(
String!
)
required
|
The Stripe Customer ID. |
stripePaymentMethodId
(
String
)
|
The Stripe Payment Method ID. |
Return fields
-
customerPaymentMethod (
CustomerPaymentMethod
)The customer payment method.
-
userErrors (
[CustomerPaymentMethodUserError!]!
)List of errors that occurred executing the mutation.