#tbhaxor-subscriptions

1 messages · Page 1 of 1 (latest)

mortal mason
#

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.

buoyant belfry
#

I see, the behaviour I am looking for is allow_incomplete

#

pending is only when subscription updates are done

mortal mason
#

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.

buoyant belfry
#

Is there any payment method that could start the subscription (pay the first invoice) but second invoice payment should fail

mortal mason
#

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

buoyant belfry
#

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 :/

mortal mason