FROM CACHE - en_header

Unexpected Shopify Customer Name Change after billing attempt

KTNinja
Shopify Partner
19 1 2

Hello, I'm testing around with making billingAttempts for SubscriptionContracts and came across a strange behaviour.

After making a billing attempt with a payment method credit card that has a different name than the Shopify Customer attached to the Subscription Contract, the Shopify Customer's name will change to the same name on the payment method credit card. Is this intentional or a bug?

 

Replies 4 (4)
TravisSTT
New Member
8 0 0

Sorry I can't help you

ewalker
Shopify Staff
Shopify Staff
30 4 7

We have not had other reports of this behavior and it would not be intentional. Are you able to reproduce this again and share request id for which you observed this behavior? If you made any other API requests to the customer, or subscription contract before the billing attempt, that would be helpful context too. Without more information, it would be difficult to diagnose further.

KTNinja
Shopify Partner
19 1 2

Hey @ewalker,

Thanks for the response, I was able to reproduce the error again.

Here are the steps that were taken to reproduce this error:

  1. I used Customers API (https://shopify.dev/docs/admin-api/graphql/reference/customers) to create the customer
  2. I used CustomerPaymentMethod (https://shopify.dev/docs/admin-api/graphql/reference/customers/customerpaymentmethod) to create the Customer's payment method where I passed in the session ID retrieved from https://shopify.dev/docs/admin-api/rest/reference/sales-channels/payment#create_payment_session-2021... passing in card details with a different first and last name from the newly created Customer's first and last name in the previous step
  3. I created a subscription contract for the customer using SubscriptionContract API (https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptioncontract) and attaching the Customer's payment method id to it
  4. Then attempted to bill the customer on their subscription contract using subscriptionBillingAttemptCreate (https://shopify.dev/docs/admin-api/graphql/reference/orders/subscriptionbillingattemptcreate)

Additional info in case it helps, I also checked between each step to see if the Customer's First and Last name changes at any point, it remained the same up until the last step, where I attempted to bill the customer.

And how do I get the "share request id"?

Let me know if there's anything else you need aside from the share request id.

KTNinja
Shopify Partner
19 1 2

Update:

Not sure if this info helps, but it looks like the default address gets updated on checkout/subscription billing attempt to the card/billing info used. I looked in the customer that experienced this, clicked "Manage addresses" and I see the old/previously set name and address