#GiuseppeB
1 messages · Page 1 of 1 (latest)
hello! can you share the subscription id?
let me generate a new one since I'm running it in automated tests
sub_1ModKRDHDQSQwQoI9PE8tCcQ
The payment method used for the Subscription needs to either be set in
https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method, or
https://stripe.com/docs/api/subscriptions/create#create_subscription-default_source
Otherwise, if neither are set, invoices will use the https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method or https://stripe.com/docs/api/customers/object#customer_object-default_source
I see, but if I update the customer default source shouldn't update also the subscription one? Or is it using only the one set previously?
i'm not sure i understand, those are parameters that you need to explicitly set
Well, when I create the subscription in first instance I'm not setting any payment method and it's automatically set the default source of the customer
so I was expecting to update that once I update the customer source method
but apparently that isn't automatically
anyway, after you've updated the default_source with the new source, you'll have to run https://stripe.com/docs/api/invoices/pay
what if my plan was to keep the subscription on trialing?
If I do invoice pay the subscription will go on active
then do nothing
when the time comes, the subscription will attempt to charge
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
yes but still the subscription will remain on "incomplete"
and I need it to be on trialing
if I do nothing I mean
did you create the subscription as a trial?