Imported customer payment methods from Stripe are null

Hi -

We’ve got 2 Shopify Plus customers that are migrating from an external platform on to Shopify and bringing along their subscriptions. We’re trying to get their payment methods over to Shopify from Stripe but the payment methods don’t seem to be getting generated. We’ve run this exact same kind of migration over a hundred times but I’ve not seen this before. I understand that payment methods are generated asynchronously and I am looking for the payment method some time after the call to the customerPaymentMethodRemoteCreate mutation but the generated customer payment methods are always returning null when I try to fetch them.


Some facts:

  • I’ve confirmed that the correct Stripe account is connected as a legacy gateway on both shops
  • I’ve confirmed the shops are both using Shopify Payments and are not in test mode
  • I’ve tested customerPaymentMethodRemoteCreate on multiple customers on both shops and repeated the tests three days in a row
  • I’ve tried creating a test customer in Stripe and in Shopify and added a payment method to the customer in Stripe to test importing that into Shopify and it fails in the exact same way

Shops that I’m currently seeing this issue on

  • gid://shopify/Shop/57686229067
  • gid://shopify/Shop/69378867447

Sample Requests First Shop
x-request-id of remote create mutation for first shop (57686229067): 540e7416-e089-45e5-8d65-b76028abe557-1736334739
…and that returned a payment method id: gid://shopify/CustomerPaymentMethod/d23e13d3b976ea209c97fbbd3752c922 which returns null when you try to fetch it and you can see that the customer (gid://shopify/Customer/7948843384907) has no payment methods connected


Sample Requests Second Shop
x-request-id of remote create mutation for second shop (69378867447): d3f33be5-6629-4c1d-8352-35449bcfa833-1736334591
…and that returned a payment method id: gid://shopify/CustomerPaymentMethod/fbe2994fa3127be62365882175ad9f3e which returns null when you try to fetch it and you can see that the customer (gid://shopify/Customer/7589730943223) has no payment methods connected


Any guidance would be appreciated as its blocking these Shopify Plus merchants from getting moved over to Shopify.

Thank you!

For anybody having this issue - it turns out that there’s now validation on Stripe payment methods’ billing address. If the billing address doesn’t exist your payment method creation will not work.

Looks like in the current unstable version of the API there’s a way to disable that validation but I know that often if you import a payment method from Stripe with no billing address you’ll end up with a sub whose billing attempts always fail. I guess this new validation on the payment method creation is to get around that issue.

We were able to fix the issue by adding billing addresses to the cards in Stripe before importing to Shopify

1 Like

Hey Brian,

Glad you figured this out and thanks for coming back here to update!