#ajay vibeosys-subscription
1 messages · Page 1 of 1 (latest)
just some time ago we had discussed about same situation
you said use card 4000 0000 0000 0341 for setup and test
I have created subscription with trial period with 4242 card
then from dashboard added new card (4000 0000 0000 0341)
and removed old 4242 card
now from dashboard I try update that subscription and trial ends now
but it wont update as card declines
To test a payment failur for a subscription, I would recommend to follow this: https://stripe.com/docs/billing/testing#payment-failures
- Create a customer with the default payment method set to
pm_card_chargeCustomerFail - Create a subscription for that user with a free trial ending soon
3.When the trial end, Stripe will try to charge the card, and it will fail
If you don't want to wait for the trial to end, you could also use test clocks: https://stripe.com/docs/billing/testing/test-clocks
so webhook customer.subscription.updated will be enough for all status?
like trialing->past_due->active
Yes, the Stripe documentation recommend listening to customer.subscription.created, customer.subscription.updated, and customer.subscription.deleted events to manage subscriptions on your end.
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#provision-access
Create and manage subscriptions to accept recurring payments.
is stripe have default behavior for try collect payment again?
like if in 2nd month subscription recurring failed then?
I read somewhere about stipe try after 3 day then 5 days then 7 days for payment and after that its status set to cancelled?
but also it depends on user setting he set on?
is such case stripe dont have default any setting?
This depends on the dashboard settings here: https://dashboard.stripe.com/settings/billing/automatic
yes I know
but what if I havent touch these setting
what are stripes default?