#Camille-wca
1 messages · Page 1 of 1 (latest)
my last test: sub_1NpoUZFgEUv1JmncTXy9sxD4
Seems expected given that you're using payment_behavior: 'pending_if_incomplete'. We'll rollback any changes in the update should payment fail
But isn't the billing cycle anchor also saved inside the pending updates ?
How can I apply the changes only when the payment wen through, and still apply the correct billing cycle anchor ?
Checking on this
I think this is expected in this scenario as the pending update includes a switch from a free, zero-amount item to a paid item
In those scenarios we'd always reset the billing anchor to the moment of payment
Ok, thanks for the explanation.
Is there a way to revert back if payment does not go through if I use another payment_behavior like allow_incomplete ? For example by canceling the invoice ?
Hi! I'm taking over this thread.
For example by canceling the invoice ?
It's not possible to delete invoices created by subscriptions.
Your end goal is then when you update the subscription from free to paid, and the payment requires 3DS, that the billing_cycle_anchor stays the same (2nd of the month)?
yes, that is correct
Hum... I don't think that's possible because the switch from free to non-free will always reset the billing cycle anchor.
but it doesn't when the payment does not require a user action (with the test card 4242)
Is there a way to reset the billing cycle anchor after the payment went through and the updates were applied ?
Sorry I need to go. I will get back on this this afternoon !
and thank you for trying to help, in case it's someone else after !
but it doesn't when the payment does not require a user action (with the test card 4242)
Can you share a request ID (req_xxx) where the billing cycle anchor was not reset?
Is there a way to reset the billing cycle anchor after the payment went through and the updates were applied ?
Yes, but you can only update it to the current date, see https://stripe.com/docs/api/subscriptions/update?lang=node#update_subscription-billing_cycle_anchor