#tbhaxor-subscriptions
1 messages · Page 1 of 1 (latest)
hi! pending_if_incomplete has no impact when creating a subscription , it only does something when you're performing an update API call with https://stripe.com/docs/billing/subscriptions/pending-updates .
will it cancel the subscription after 3 unsuccessful payment?
behaviour for what to do when payments fail on recurring invoices is controlled by your settings in the Stripe dashboard, not that API parameter.
I see, the behaviour I am looking for is allow_incomplete
pending is only when subscription updates are done
yep, you likely want default_incomplete (or allow_incomplete but really the recommended one is the first). The same parameter is used for creation and update calls but not all the enum values are relevant in both cases.
Is there any payment method that could start the subscription (pay the first invoice) but second invoice payment should fail
I know such cards exists, my card does the same thing. But need to test this in the test env https://stripe.com/docs/testing
the usual way to test that is to start the subscription with a normal test card like pm_card_visa 4242424242424242, then before the next invoice update the customer/subscription to use pm_card_chargeCustomerFail 4000000000000341 instead so the next invoice fails. https://stripe.com/docs/testing#declined-payments
Yeah, we can change the payment method of subscription. Thanks it cleared my doubts
Is there any doc explaining the subscription status and its transition :/
I'd probably start here https://stripe.com/docs/billing/subscriptions/overview#subscription-lifecycle