Hi,
This link says,
In order to set a customer's subscription status
back to “active” from an “unpaid” or “past_due” state, you will need to open their most recent invoice and successfully pay it.
But when the subscription's status is past_due, adding the new valid card triggered the payment and the payment was successfully made.
Steps I followed:
1. Account settings for subscription were default.
2. Create a customer, subscribe to a plan with trial period end with 15 minutes, also attach the invalid card 4000 0000 0000 0341 to a customer.
3. Waited for trial period to end. invoice was created properly and subscription went to active.
4. Did not wait for stripe to attempt the charge. Did the same manually from Dashboard. Expected charge.failed, etc events were caught.
5. Added the card, events were triggered correctly
6. But also the payment was paid for the last unsuccessful payment. (Did not have to manually pay the invoice)
I had to manually Pay the invoice when the subscription status was unpaid
1. In account settings, make subscription unpaid if the charge failed on the very first attempt.
2. Create a customer, subscribe to a plan with trial period end with 15 minutes, also attach the invalid card 4000 0000 0000 0341 to a customer.
3. Waited for trial period to end. invoice was created properly and subscription went to active.
4. Did not wait for stripe to attempt the charge. Did the same manually from Dashboard. Expected charge.failed, etc events were caught.
5. Added the card, events were triggered correctly
6. This time I had to pay the invoice manually(as expected).
Am I missing anything ? Can I safely just(not pay the invoice) add the card when subscription status is past_due ?
Thanks and Best Regards,
Jigar Dhulla