#kosherslayer
1 messages · Page 1 of 1 (latest)
Hi 👋 how are you controlling access to your product? Is it based on the state of a Subscription object?
It's based on the webhook events i receive
so invoice_payment_suceeded -> provision access
invoice_payment_failed -> remove access
Hello! I'm taking over and catching up...
You can adjust your settings in the Dashboard here to handle failed payments: https://dashboard.stripe.com/settings/billing/automatic
However, if you want to always do something exactly 30 days after something is past due that's something you should set up on your end, where you have a countdown running from the point at which the payment is past due.
im wondering though if I can do a work around because I see I can set the subscription_status to be unpaid after an invoice status is 30 days past due. So once that happens, won't I receive a stripe webhook event that I can use?
Yes, if you set that option you'll get a webhook for that change to the Subscription.
okay so the event ill receive is a subscription updated event with a status of 'unpaid'?
Are there any other cases where I can receive a subscription_updated event with status of unpaid? Or is that it
I think that's it if that's how you have your settings configured.
and then once they pay it, do i provision access based on invoice.payment_succeeded or subscription.updated with status=succeeded?
I recommend using invoice.paid, not invoice.payment_succeeded. Or you can use customer.subscription.updated and check the status.
How come? jw
How come what?
to use invoice.paid and not payment_succeeded