#malik_zee
1 messages · Page 1 of 1 (latest)
👋 happy to help
you can't but what you can do is receive an invoice.upcoming event on your webhook endpoint
ok but when it's gonna trigger ?
you can configure how many days before the renewal the event will be triggered in your dashboard settings here: https://dashboard.stripe.com/settings/billing/automatic under Prevent Failed Payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thanks @surreal raptor .
i have set it to 7 days. I want to do something like this
if the user have chose to pay manually then i will send a invoice 7 days before their subscription end if they pay in those seven days they will have access to my service for next month if they don't pay it subscription will be cancelled.
Can i pay that invoice in that 7 days? or i will have to wait for this subscription to end then i can again renew subscription
@naive prairie can u also help here ?
you can't really do that without a very messy workaround which just thinking about it makes me a bit unsettled
the invoice won't be generated until the new billing_cycle
so you could send the customer an email when receiving the invoice.upcoming event but then you'd have to generate a separate payment, wait for it to be paid and then create a Customer Credit Balance, which would then be used to pay the invoice that will be generated in the future
that's really messy IMO
You'd instead want to use the settings about cancelling the subscription if the invoice remains unpaid for X days
And it happens after the renewal and invoice generation
yup i know how i can iimplement it manually in nodejs but i don't want to rely on node for it
it can be a bit risky
but the problem with this he/she will have access to my service for that period if they haven't paid for that month
lets say invoice due date is 7 or 4 days they will have access to my service for the next month's 7 or 4 days