#smahz-invoice
1 messages · Page 1 of 1 (latest)
I'll explain as an example, I've an active subscription, and for its upcoming invoice, can I able to plan it will be unpaid for some reason, -- it is for testing some scenarios in my system
oh ok. Well there's no easy way unfortunately, this is a pain to test :/
you can change the customer's payment method to the '4000000000000341' test card https://stripe.com/docs/testing#cards-responses so that when the invoice is created and charged the payment will fail and eventually the subscription becomes unpaid; after setting that, you can force the subscription to bill now by setting https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor to now, for testing.