#shayan-shokat_unexpected

1 messages ¡ Page 1 of 1 (latest)

waxen sageBOT
#

👋 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.

jade crest
#

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

worthy island
#

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"

waxen sageBOT
fiery loom
#

Yeah you can still set it so prorations are created with pending updates

#

Recommend you try this out in test mode

worthy island
#

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?

fiery loom
#

If you need to save card before-hand use the decline after attaching card

#

Below the big table

#

4000000000000341

#

"Attaching this card to a Customer object succeeds, but attempts to charge the customer fail."