#MarkoBoras
1 messages · Page 1 of 1 (latest)
What type of integration are you using now for Subscription? Subscription API or Checkout Session?
- failed checkout right now in checkout (user is trying to subscribe)
For initial checkout, you can listen tocheckout.session.completedevent for subscribing successfully and fulfil the order. Or you can listen tocustomer.subscription.*events and check thepayment_status. Is there any reason why you want to listen to failed payment for initial subscribing?
- payment is triggerred on renewal of subscription and it has failed because of insufficient funds
You can listen toinvoice.payment_failedevent for the payment failure of a subscription
invoice.payment_failed will trigger for failed renewal and for initial subscribing
right?
Yup, if the payment failed for initial subscribing and in future billing cycles
Is there something for grace period enabling
This is what I am using
but the problem is that payment retry is trigerring also in cases when user is trying to pay through checkout and it has failed
I only want this flow to start trigerring when renewal has failed
Customer can try to pay until Checkout Session expires
By default, Checkout Session expires after 24 hours
ok
Let me explain what I want to achieve then
and can you point me what to use or I am using the right thing
I want to give users who have already subscribed to plus plan grace period when their current subscription ends.
I want to send them 3 stripe mails that payment has failed and before every mail stripe automatically tries to charge them.
I am trying to achieve that through
Problem is that this is trigerred also for users who have free plan and their payment has failed on checkout because of wrong card
I want to give users who have already subscribed to plus plan grace period when their current subscription ends.
If the subscription is going to end, what kind of grace period are you referring to?
I want to send them 3 stripe mails that payment has failed and before every mail stripe automatically tries to charge them.
It's not possible to set payment retry to only happen after payment method is collected again from the email
Problem is that this is trigerred also for users who have free plan and their payment has failed on checkout because of wrong card
Free plan should be with $0 and shouldn't be charged. The setting here only applies to recurring payment, not payment failure when signup the subscription via Checkout Session.
Nice
didn't know this 'The setting here only applies to recurring payment, not payment failure when signup the subscription via Checkout Session.'
About your question 'If the subscription is going to end, what kind of grace period are you referring to?'
I'll implement custom logic where I'll leave him in app plus features in some period
and he'll get on his email
3 tiems like I've set there
will it work?
because your colleague has told me that these mail will not trigger in test mode
but in production on fail of recurring payment
Yes in test mode we don't send automatic emails.