I assume you are using Stripe as payment processor and you want to have your customers enter new payment method details using Stripe’s platform, and later, you want to update your customer’s subscription contract in Shopify with the new payment method.
After you obtain the new Stripe payment method, you should be able to achieve that with the following:
create a new remote payment method for the customer. You are in the right direction with customerPaymentMethodRemoteCreate (see Step 3 here for more details), and
update the subscription contract’s payment method (start at Step 2 from this guide)
Please notice that customerPaymentMethodRemoteCreate exists to support migrations from other subscriptions platforms. Shopify will not follow changes made to the payment method in Stripe (expiry date, last digits, etc.)
The payment methods in question are Shopify Payments and do not exist in our stripe account.
We do however have scripts in place that can connect to the stripe API and then use the customerPaymentMethodRemoteCreate API to create a new Shopify Payments payment method.
As we are using Recharge for our subscriptions, if we update the subscription contract (as you outlined in point #2) would the new payement method ID then get pushed through to recharge?
if we update the subscription contract (as you outlined in point #2) would the new payement method ID then get pushed through to recharge?
This would be a question for ReCharge, but I’d guess that they should be listening to the contract’s changes webhook and can follow through.
Please notice that payment methods created with customerPaymentMethodRemoteCreate are not handled by Shopify Payments, but through the corresponding remote payment processor (Stripe, PayPal, etc.)