#reyansh-sharma_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1225352717132890135
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Sorry I don't really follow your question. sub_1P1jL5K8SGfgbRnhIv57GBPX is simply created with metadata without any backdate
Could you clarify what you expect and what is not going with your expectation?
I submitted a request to create this sub around 2 hours ago or so, for per day type with a BackdateStartDate to 3rd April 2024 at 7:00 AM UTC.
All is well so far. The subscription was created from the expected date & invoice was generated and changed.
The next invoice is for April 5th though expecting it to be on 4rth April.
hi! I'm taking over this thread.
Hey Soma sure thanks
When using backdate_start_date, it creates an invoice with a prorated amount for the time between the backdated start date and the current time. and then the next invoice will be in exactly one month (for a monthly subscription)
What way do you recommend for the following scenario:
- Want to set up a donation subscription of $10/day which starts at 7:00 AM UTC?
- Want it to be charged $10 at 7:00 AM so the amount is consistent till the last day of the subscription (If you set the subscription start to UTCNow and CancelAt to let's say 7 AM three days from today's last invoice will not be of $10 but a prorated amount & < $10).
you want to start the subscription in the future or in the past?
Let's say in the past(Unless there is another way without losing money - If I we start a subscription in the future I have to skip 1 day of donation of $10 I believe). The current logic is:
- If UTCNow < UTC 7 AM today set BackdateStartDate to the previous day at 7
- If UTCNow > UTC 7 AM today set BackdateStartDate to 7 AM UTC today.
So this scenario it will always in past at 7:00 AM UTC.
So this scenario it will always in past at 7:00 AM UTC.
got it. let me think about this...
Yes and thanks will wait for you response ๐
So 7:00 AM backdate without skipping any invoice etc
One thing forgot to mention along with using backdate_start_date, I am using proration_behavior with value none.
One thing forgot to mention along with using backdate_start_date, I am using proration_behavior with value none.
when you do this, the first invoice is for $10? but the issue is the next Invoice isn't created at the right time?
Yes correct
Subscription started on 3rd April.
The first invoice was $11.11
But the next invoice was 5th instead of 4th.
then that's the solution! use backdate_start_date and proration_behavior: none. and then you can move the billing cycle using what's explained on this page: https://docs.stripe.com/billing/subscriptions/billing-cycle#new-subscriptions