FROM CACHE - en_header

Subscription app should let customers to change payment methods

Solved
Webdibs
Shopify Partner
30 2 9

I've sent the app to shopify and got rejected, I needed to let customers to change payment method for his subcriptions. But they don't give any more information, just this link:

https://shopify.dev/apps/store/requirements#a-storefront-requirements

According to the link, we need to use:

https://shopify.dev/api/admin-graphql/2021-10/objects/customerpaymentmethod#fields-CustomerPaymentMe...

So do we need to request for customer credit card? Isn't that dangerous? Also, do we need to show current payment method?

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
Accepted Solution (1)

Accepted Solutions
Webdibs
Shopify Partner
30 2 9

This is an accepted solution.

I used GQL's customerPaymentMethodSendUpdateEmail call

 

More info at:

https://shopify.dev/api/admin-graphql/2022-01/mutations/customerPaymentMethodSendUpdateEmail

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.

View solution in original post

Replies 7 (7)
masumluf
Excursionist
38 0 4

Hello Webdibs, Did you solve the problem ?

Webdibs
Shopify Partner
30 2 9

Yes, I needed to create a button to generate the email that is sent to the customer to change their payment info

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
masumluf
Excursionist
38 0 4

could you tell me how to generate the email ? which api or gql should I trigger ?

Webdibs
Shopify Partner
30 2 9

This is an accepted solution.

I used GQL's customerPaymentMethodSendUpdateEmail call

 

More info at:

https://shopify.dev/api/admin-graphql/2022-01/mutations/customerPaymentMethodSendUpdateEmail

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
masumluf
Excursionist
38 0 4

where i will get paymentId ? could you provide a sample paymentId ?

Webdibs
Shopify Partner
30 2 9

You can get it from contract's information. There's a customerPaymentMethod with that info.

Stretching the limits of Shopfy, Wordpress & WooCommerce since 2010.
masumluf
Excursionist
38 0 4

I have created and post today here , link  I made a request but got error.