#Pilou
1 messages · Page 1 of 1 (latest)
The first line :
What do you mean by 'didn't work correctly'?
The epoch timestamps returned form the API are to the second, not millisecond. I believe getTime() returns milliseconds: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTime
Likely explains the discrepency
You'll need to multiple timestamp by 1000
I have NAN values when i multiple by 1000 i don't understand why
Can you share the code?
OK i manage to correct my code thx it's work !
If i want to change de recurring value monthly to weekly how can i do it ? I didn't manage to do it ?
Not sure I understand the question
I want to change de recurring time to weekly and i don't understand how to do it ?
You'll need to create a new Price object, and update the Subscription to use that new Price: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#changing
Here is my code i think u don't understand my question
The red line don't work to set the automatic renewal to week
and not month
Yes, because you don't control that billing interval on the Subscription. It's set at the Price object level
Where you pass a price_xxx ID to the items array. Those objects have the recurring interval set
So you'll need to create a new Price object that's a weekly interval if that is your intention
ohhhh okay thx !