#Karan S - Subscription

1 messages ยท Page 1 of 1 (latest)

stray forge
#

๐Ÿ‘‹ Thanks for reaching out
Taking a look..

versed geyser
#

Yes please

#

@stray forge Have you checked sir ?

stray forge
#

sorry juste give me couple of minutes

#

You subscription backdated_start_date is 2022-09-06 18:30:00 +0000 UTC, so it has been prorated for 2,36โ‚ฌ for the period between 6th and 7th of September
this is alongside a one full month subscription from 7th of September to 7th of octobre

versed geyser
#

It's mixing,
Like I have passed start date as 7th of September
Its considering 2022-09-06 18:30:00 +0000 UTC

So should end at
2022-10-06 18:30:00 +0000 UTC

#

Why then conssidering 7 sept TO 7 Oct

#

How can I handle this

#

@stray forge Please guide sir

#

current_start_date is
September 7, 2022 5:10:36 PM
current_end_date is
October 7, 2022 5:10:36 PM

stray forge
#

The subscription was created at 2022-09-07 11:40:36 +0000 with a billing_cycle_anchored_at at 2022-09-07 11:40:36 +0000
and you have specified that the subscription started yesterday at backdated_start_date=2022-09-06 18:30:00 +0000

#

that's why the billing cycle start from today

#

and not from yesterday

#

the billing cycle refers to billing_cycle_anchored_at and not to backdated_start_date

versed geyser
#

So If I make start date as 2 days back even then my subscription will start from 7 sept TO 7 oct and I will be charged from 5th Sept to 7th sept ?

tired bramble
#

Hello ๐Ÿ‘‹
I'm taking over as my colleague needs to step away.

Let's take a step back
What are you exactly trying to do? what's the usecase here?

versed geyser
#

So If I make start date as 2 days back even then my subscription will start from 7 sept TO 7 oct and I will be charged from 5th Sept to 7th sept ?

I have this question

#

From my site user selects start date as 7 sept at time 7 sept 5:10 My timezone,
I passed 7 Sept 2022 as start date,
Stripe converts it to UTC and considers 2022-09-06 18:30:00 +0000 as start date,even though cycle will be from 7 Sept To 7 Oct,
My user will be charged 2 Euro extra because of start date

#

@tired bramble This is the exact issue

tired bramble
#

You're passing in a UTC timestamp when you create the schedule

start_date: "1662489000"

#

why are you passing a timestamp that is for September 6th?