#shayan-shokat_unexpected
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1251153597513859172
đ Have more to share? Add details, code, screenshots, videos, etc. below.
hi there!
In stripe, if the user is on one subscription and you upgrade him to another plan but the payment fails, I downgrade the user to previous plan.
I would recommend something different here: using the pending update feature. this way the subscription will update only if the payment succeeds: https://docs.stripe.com/billing/subscriptions/pending-updates
will it still adjust the new invoice proration based on previous usage if I change proration_behavior to always_invoice, currently I'm setting it to "create_proration"
Yeah you can still set it so prorations are created with pending updates
Recommend you try this out in test mode
in test mode, I couldn't find any card that can make payment fails. the test card with insufficient_funds", throws error at time of creating payment method, is there a way to test this in test mode?