#elleschu

1 messages ยท Page 1 of 1 (latest)

silent wagonBOT
stiff timber
#

Hi ๐Ÿ‘‹ if you have your settings configured so that Subscriptions move to an unpaid state after the payment retry schedule is exhausted, then it should happen pretty quickly.

The setting I'm referring to is found in the manage failed payments section here:
https://dashboard.stripe.com/settings/billing/automatic

small oxide
#

Well this is the first thing I tried to test but you have an issue, when I changed Stripe billing settings in test mode it changed my prod settings ๐Ÿฅต ! I also tried to find a card corresponding to my use case here https://stripe.com/docs/testing?testing-method=card-numbers but there is apparently nothing.

Simulate payments to test your integration.

stiff timber
#

This is expected, the settings on that page apply to both test and live mode.

#

You will need to use the test card that attaches successfully but results in failed payments, and you'll need to swap the Payment Method being used after a successful payment so the Subscription can be set up.

#

4000000000000341

small oxide
#

Well but this comes down to test billing settings also in prod mode isn't it ?

stiff timber
#

No, they are global settings, they are not mode dependent.

small oxide
#

I also used that test scenario you mentioned with card : 4000000000000341 but my subscription. is then in status : incomplete instead of unpaid + le invoice remains opens instead of uncollectible (as I wanted to test)

#

(off course this was while the settings were changed)

stiff timber
#

Yes, you will need to use a card that succeeds (such as the 4242 card) on the first payment for the Subscription in order for the Subscription to go into an active state. Then you need to swap to the 0341 card to simulate the renewal failing when the Subscription moves to the next billing period.

small oxide
#

ok, do I need to reset billing cycle to simulate the renew after I swapped the card ?

stiff timber
#

Depends on how you're testing. If you're using our Test Clocks then you can advance the time of the sandbox the test Subscription is in:
https://stripe.com/docs/billing/testing/test-clocks

Using Test Clocks is a great way to test Subscription flows because you don't have to wait for time to pass to see the lifecycle of objects.

small oxide
#

ok thanks a lot ๐Ÿ™‚