#robertpartfy-test-billing
1 messages · Page 1 of 1 (latest)
https://stripe.com/docs/billing/testing has guides on this
the two main ways are a) get in that TestClock beta
or b) you can test a recurring invoice by setting a subscription to have trial_end set to a few minutes in the future, when the trial ends, it generates a recurring invoice that follows the same flow as a renewal payment and can be used to test what happens
thanks mate! got it 🙂
@polar surge is there any credit card i can use to test for off_session charges so that it throws an error?
but succeeds when charging the customer on_session when creating a subscription?
not a single card unfortunately. Usually what you'd do is use a working card like 4242 to start the subscription, then manually add the 4000000000000341 card from https://stripe.com/docs/testing#cards-responses to the customer and make that the default for subscription payments, and wait for the next recurring payment(which can be triggered with a Clock or a trial as above) to try to charge it and fail