#Shx-renewal-testing

1 messages · Page 1 of 1 (latest)

tardy cradle
#

Hello! You could create a subscription with a short trial (like a few minutes), and have the customer's default payment method be 4000000000000341 (which can be successfully attached but attempts to charge it will fail).

naive cedar
#

I am using checkout session for subscription, I can w8 for 1 day but I want how I can do this to check renewal failed using checkout session that it will charge once and but failed at renewal or I can change card detail after first charge?

tardy cradle
#

If you want to specifically test that a previous charge has succeeded, but the next charge fails you'd have to change the payment method used by the subscription after the first charge has gone through. To make this happen quickly, you'd likely want to use a price with a short billing cycle (one day) since checkout doesn't support billing cycle anchors (which is how you would force a quick renewal with the Subscriptions API)

If you're fine with there being no charge but the renewal still fails, then a trial will be the simpler option.

naive cedar
#

Ok got it thank you for your help