#lafafm - webhook events
1 messages · Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can 🙂
if customers card haven't enough costs
can you explain what you mean by this?
Those statuses depend on your billing settings, but you can use that the same way -- check if it moved from trialing to some other status in the event
Yea
So probably our billing is configured that way, that if customer have first payment failed - he converted to an active status for some reason, before going to past due
So, if listening customer.subscription.updated
First event would be trial -> active
And then trial -> past_due
The question - that I want to determine is customer moving trial -> active with an actual payment done, or not
listen to invoice.paid for that -- depending on your specific needs you might need both
that or with the subscription event, retrieve the latest_invoice to check if it was paid
Thank you
Was looking to that solution, just had some hope that there's might be some ready solution
No problem! It really depends on your specific requirements around what this means:
moving trial -> active with an actual payment done, or not