#kevinfleri-subscription tests

1 messages · Page 1 of 1 (latest)

fair gulch
heady atlas
#

After I have been successfully created a subscription, I need to be able to simulate both success and failure payment for the next cycle

#

@fair gulch

fair gulch
#

Sure. You'd set up the Subsciption for a Customer with a "good" test card, then change the Customer's invoice_settings.default_payment_method to a card that will fail, then change the billing_cycle to "now" and it will test a failure. You can use the card ending in 0341 from https://stripe.com/docs/testing#cards-responses

Learn about the different methods to test your integration before going live.

heady atlas
#

Thanks, will these bad test card be able to generate card token, I am using default_source instead of the payment method because I need it to be compatible with ACH debit with Plaid.