--- title: customerPaymentMethodRemoteCreditCardCreate - GraphQL Admin description: Create a payment method from a credit card stored by Stripe. api_version: 2024-10 api_name: admin type: mutation api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/customerPaymentMethodRemoteCreditCardCreate md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/customerPaymentMethodRemoteCreditCardCreate.txt --- # customer​Payment​Method​Remote​Credit​Card​Create mutation Requires `write_customers` access scope. Also: Requires `write_customer_payment_methods` scope. Deprecated. This will be removed in 2025-01. Use [customerPaymentMethodRemoteCreate](https://shopify.dev/docs/api/admin-graphql/latest/mutations/customerPaymentMethodRemoteCreate) instead. Create a payment method from a credit card stored by Stripe. ## Arguments * customer​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) required The ID of the customer. * stripe​Customer​Id [String!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/String) required The Stripe Customer ID. * stripe​Payment​Method​Id [String](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/String) The Stripe Payment Method ID. Starting on 2025, stripe\_payment\_method\_id will become mandatory for all API versions. *** ## Customer​Payment​Method​Remote​Credit​Card​Create​Payload returns * customer​Payment​Method [Customer​Payment​Method](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CustomerPaymentMethod) The customer payment method. * user​Errors [\[Customer​Payment​Method​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/2024-10/objects/CustomerPaymentMethodUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### customerPaymentMethodRemoteCreditCardCreate reference ## Mutation Reference ```graphql mutation customerPaymentMethodRemoteCreditCardCreate($customerId: ID!, $stripeCustomerId: String!, $stripePaymentMethodId: String) { customerPaymentMethodRemoteCreditCardCreate(customerId: $customerId, stripeCustomerId: $stripeCustomerId, stripePaymentMethodId: $stripePaymentMethodId) { customerPaymentMethod { # CustomerPaymentMethod fields } userErrors { field message } } } ``` ## Input ```json { "customerId": "gid://shopify//10079785100", "stripeCustomerId": "", "stripePaymentMethodId": "" } ```