#malik_zee

1 messages · Page 1 of 1 (latest)

hollow quiverBOT
surreal raptor
#

👋 happy to help

#

you can't but what you can do is receive an invoice.upcoming event on your webhook endpoint

west pelican
#

ok but when it's gonna trigger ?

surreal raptor
hollow quiverBOT
west pelican
#

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 ?

surreal raptor
#

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

naive prairie
#

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

west pelican
#

it can be a bit risky

west pelican
naive prairie
#

Yes, correct

#

If necessary for your business, you can offset your stripe billing interval from your access windows