#plasmatiger
1 messages · Page 1 of 1 (latest)
It is usually on the day the subscription is going to expire.
Yep we generate the invoice on thebilling_cycle_anchortimestamp, and normally attempt payment within an hour.
What I need is the invoice of the next month getting generated like 3 days before expire for which I can send a reminder to user with payment link and if they pay successfully, then the next subscription should start on the renewal date. (Again a basic real-world use-case and hence, any article pointing to its implementation would be very helpful).
We don't really support sending invoices earlier like this. And doing anything manual like that then starts to get a bit messy.
What's the use case?
Hi@fast bay, so usually in any subscription app you see reminder like your subscription is going to expire in 3 days. Please pay now to continue enjoying the product. Like this. So, user usually pay before the expiry is there. How to achieve this?
Hey! Taking over for my colleague. Let me catch up.
You can listen to the webhook event invoice.upcoming which is sent few days prior to the renewal of the subscription:
https://stripe.com/docs/billing/subscriptions/webhooks#events:~:text=Sent a few days prior to the renewal of the subscription. The number of days is based on the number set for Upcoming renewal events in the Dashboard. You can still add extra invoice items%2C if needed.
You can customize this in your dahsbard settings at :
https://dashboard.stripe.com/settings/billing/automatic
Section Prevent failed payments
I need to have a CTA - Pay Now
So, automatic cuts the money on day of the expiry and renew the subscription
What if user don't want to do autopay. They want to pay manually at end of each cycle
What if user don't want to do autopay. They want to pay manually at end of each cycle
You can invoice for the subscription items outside of the billing cycle
https://stripe.com/docs/billing/invoices/subscription#generating-invoices
And you send the hosted invoice url to your customer in order to pay it
So, we generate an one-off invoice with billing cycle anchor at date of subscription expiry so that it renews the subscription on date of expiry?
Nope, this is outside of the billing cycle. You said that you want to make your customer to pay manually in advance