#GRIBDO

1 messages · Page 1 of 1 (latest)

plush swallowBOT
ripe lintel
#

Hi
Did you give it a try and you get an exception ?

unborn locust
#

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

ripe lintel
unborn locust
#

req_FZFLntq8b9eBm8

ripe lintel
#

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

unborn locust
#

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

ripe lintel
#

in your case it looks like you are Using PaymentMehtods APIs

unborn locust
#

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

next fulcrum
#

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.