#GRIBDO
1 messages · Page 1 of 1 (latest)
Hi
Did you give it a try and you get an exception ?
Hi. yes. it says i have to provide either a plan, price or price_data
but i don't want to change or update anything except the paymentMethod
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_FZFLntq8b9eBm8
You are passing items in that request, where items[1] youare passing just the quantity without a price/plan/price_data
also in that request, you don't seems updating the default PaymentMethod
okay i have to look at this. But it is possible to just update the defaultPaymentMethod without touching anything else in a subscription?
changed my implementation, now it works
can you tell me the difference between default_source and default_payment_method? i don't really get that
yes you can
You are using PaymentMehtod APIs or Source APIs in your integration? you need to use the related default_ proerty
in your case it looks like you are Using PaymentMehtods APIs
so to start a subscription, is am using the checkout by stripe. If a customer wants to changes something after, iam using the PaymentMethod API / SetupIntent in order to change paymentMethods.
But i always want to update the customers payment method & the subscriptions payment method in order to have everything correct
you should use default_payment_method; default_source is for legacy/older types of objects in the API. If both of them are set, default_payment_method takes precedence when we decide what to charge.