customerPaymentMethodGetUpdateUrl mutation for Customer payment methods is now available
API
Effective October 01, 2021
As of the 2021-10 API version, we have introduced a customerPaymentMethodGetUpdateUrl
mutation to the Admin API that, given a customer payment method ID, returns a URL that enables a customer to update their payment method in a secure way when in a session. This mutation supports Shop Pay as of late 2021, and will expand support to other payment methods in the future. The customerPaymentMethodSendUpdateEmail
is recommended as a fallback when the customerPaymentMethodGetUpdateUrl
returns an error or when the customer needs to update their payment method outside of a session.
Learn more about this mutation by visiting our developer documentation.