#anishsubedi1_83944
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you explain yourself a bit better? What are you referring to?
Task: Allow user to change their credit card on existing subscription
Steps I did:
- create new SetupIntent
- confirm the new setupIntent
- This return object with payment_method_id
- update the subscriber's default payment method with this new id
However, even doing so, it is taking previous credit card
Okay, let's start with the last step. Can you share an API request ID for this? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
this should be one:
req_1SYAzQMETG3j9H
No this one isn't
I'm looking for the API request where you update the Customer's invoice_settings.default payment method
No
It will be a POST request for a /v1/customers/cus_XXXXXX
I'm looking at your account logs and I don't see any requests that fit this pattern. I think the problem is you are not doing step 4
This is getting hit:
userDetail.userSubscriptionProfile.stripeSubscriptionId,
{
default_payment_method: confirmSetupIntent.payment_method,
},
);
Ah so you are modifying the subscription, not the Customer
yea, changing credit card on existing subscription so that next month payment should go on new credit card.
This is the re: req_E7bNEVs8zTyTG5
Okay here is an example request: https://dashboard.stripe.com/test/logs/req_E7bNEVs8zTyTG5
Okay I can see the request updated the payment method
But, it's again old credit card not what I entered on
I'm looking at that request. Here is where you created the Payment Method: https://dashboard.stripe.com/test/logs/req_WeoTFYprWDXsiO
It uses pm_card_visa which is the same Payment Method as the 4242 card
Okay. I will try Mastercard debit to check? okay?
Okay
Looks like didnot change: req_6oIdo1IOkK3D5c
I can't do much with screenshots. Can you share the API requests?
here : req_6oIdo1IOkK3D5c
That is strange. I keep seeing the same Payment Method created. https://dashboard.stripe.com/test/logs/req_rwrv2EUkzk81aU