Subscription API - Add New Payment Method

Solved

Subscription API - Add New Payment Method

Conjured_Char
Shopify Partner
36 0 4

Is it possible to trigger a customer to add a payment method if the method has been revoked? There doesn't appear to be a way to do it via the Shopify Customer, nor does the method customerPaymentMethodSendUpdateEmail work unless you have an existing payment ID (which you wouldn't have if the payment method had been revoked).

Accepted Solution (1)

Philibert_Dugas
Shopify Staff
37 14 16

This is an accepted solution.

Hey there,

You can trigger an update on a revoked payment method. To retrieve the ID, you can use the `showRevoked: true` argument when querying payment methods

https://shopify.dev/api/admin-graphql/2022-01/objects/subscriptioncontract#field-subscriptioncontrac...

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Replies 2 (2)

Philibert_Dugas
Shopify Staff
37 14 16

This is an accepted solution.

Hey there,

You can trigger an update on a revoked payment method. To retrieve the ID, you can use the `showRevoked: true` argument when querying payment methods

https://shopify.dev/api/admin-graphql/2022-01/objects/subscriptioncontract#field-subscriptioncontrac...

To learn more visit the Shopify Help Center or the Community Blog.

Conjured_Char
Shopify Partner
36 0 4

Thank you so much! That did the trick, I really appreciate your help!