For discussing the development and integration of subscription-enabled shops using Shopify's Subscription APIs.
Do I need to set it as the default payment method in Recharge for it to be used by the subscription here?
HI Gabrielguerin,
It does seem you're correct with the steps you've described. Here's a further breakdown:
Stripe: Retrieve the payment method from a checkout session through the payment intent.
Shopify: Use the CustomerPaymentMethodRemoteCreate
mutation to create a new remote payment method for the customer. The mutation requires the customer's Shopify ID and the Stripe payment method ID.
Recharge: Update or create a payment method for a customer. Recharge API provides endpoints to create or update a customer's payment method.
Also you're correct in saying that you would need to set the new payment method as the default in Recharge for it to be used for subsequent subscription charges.
Please note that you need to ensure a secure and compliant handling of payment data throughout this process. I recommend testing this process thoroughly in a secure and controlled environment before implementing it in your live store.
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
@Liam, I managed to get step 1 working and step 2 is almost done, but I need guidance on accessing Shopify's protected scopes in Make (Integromat). I posted my question in this thread. Do you have any idea how to accomplish this?