#mikin-timestamp

1 messages · Page 1 of 1 (latest)

sick oak
#

Hi 👋 can you share the request ID of a request where you encountered this error?

grand adder
#

I did not get you

#

getting an error while creating subscription

sick oak
#

On the right side of that screen, can you copy the ID that is shown there and paste it here?

grand adder
#

req_q37EqllTMy4xQA

#

here it is

#

req_QzsoFGjMBlpXM3

sick oak
#

What are you trying to do in this case? It looks like the timestamp you provided was a second(ish) before the request made it to us, so the timestamp looked like it was in the past.

grand adder
#

i am setting up BillingCycleAnchor property

#

as current date

#

for SubscriptionCreateOptions

#

class

#

BillingCycleAnchor = Datetime.Now

sick oak
#

Gotcha, that approach isn't going to work due to delay between your code calculating the current timestamp and making the request. The billing_cycle_anchor defaults to the current time if you don't provide a value for it, I would recommend trying not setting that value and see if that behaves the way you're expecting.

grand adder
#

but i wanted to charge customer

#

right a way as they subscribe

#

so if do not set it...let me try that way

sick oak
#

Charging immediately is default behavior for Subscriptions.

grand adder
#

yes it works

#

thanks