#Vinny GG

1 messages · Page 1 of 1 (latest)

dusk pollenBOT
neon shuttle
#

When creating a new subscription I am passing a date in the backdate_start_date field

#
  "customer" => "cus_MrO7tuYBTzdMrr"
  "currency" => "usd"
  "items" => array:1 [
    0 => array:1 [
      0 => array:1 [
        "price" => "price_1MC3irIM6n1UMdapjPUSAUeQ"
      ]
    ]
  ]
  "metadata" => []
  "backdate_start_date" => 1671129589
  "cancel_at_period_end" => false
  "collection_method" => "charge_automatically"
  "default_tax_rates" => []
]```
#

The date is in the past

#

20 minutes have passed

buoyant portal
neon shuttle
#

strange I am sending 1671129589 but 1671235200 is coming, do you know the reason?

buoyant portal
#

Not sure. How are you computing the timestamp in your code? Are you hard-coding it or does it come from some kind of function or calculation?

neon shuttle
#

hard-coding

#

I'm always sending 1671129589

buoyant portal
#

Can you try sending it as a string and see if that makes a difference?

neon shuttle
#

like this ? 12/15/2022, 3:39:49 PM

buoyant portal
#

No, wrap the number 1671129589 in quotes: "1671129589"

neon shuttle
#

ah

#

ok