#marcabrub
1 messages · Page 1 of 1 (latest)
We have not made any changes to the checkout since September 1st. So how is it possible that now it is not saving the payment method in some cases and in others, however, it does?
So how is it possible that now it is not saving the payment method
You mean the PaymentMethod is not saved on the Subscription level?
yes
AFAIK, Checkout Session don't update the default_method of the subscription using the Customer payment_method automatically, you need to do the update by your integration:
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
I'll try to do a test to double check quickly
Ah nope I'm wrong. it does.
But regarding the SusbcritpionId you shared with me sub_1MODWzIYOry9WQXwboBFvZHi, it is created from your backend (here is the requestId req_tz2oMsEy7wBAj8)
And not via Stripe Checkout
i have more cases
sub_1LteqyClNuC1nSuP35stLy3K
sub_1Lsyx7ClNuC1nSuPpccxTyrz
sub_1LVMfpClNuC1nSuPzGXW0y44
And what does it mean that it is created from the backend?
You have some Subscription that are created from your backend using direct Subscription API https://stripe.com/docs/api/subscriptions/create (e.g. sub_1LteqyClNuC1nSuP35stLy3K) and others are created from Stripe Checkout (e.g. sub_1LVMfpClNuC1nSuPzGXW0y44)
for the Subscription that are created from your backend, you need to provide/set the default_payment_mehtod
How can I know if that subscription is made with subscriptions API?
To be able to compare with different cases, since we have more than 1400 clients in the same situation
thankyou so so much
By looking at the Subscription objects directly? You can't, unless you specifically passed some metadata to identify them
You'd look at the API creation request, I guess
And then, how have you been able to identify these 2 cases that I have passed you?
We can see the root API call that created the Subscription objects (as can you via the Dashboard)
So what I understand is that from the API it saves the payment method for information purposes but it doesn't take it to make the next payment, is that correct?
Depends on how you created the subscription and what parameters you passed. Specific example you can share?