Closed Jacketh closed 3 years ago
The internal trialExpires
contains a timestamp or datetime object for fine grained trial ending. It needs to be 48 into the future. See the note here:
We currently aren't considering to make use of trial_period_days
because we want to offer fine grained trial ending. You can still make use of this by passing the option directly in the array of the checkout method.
Description:
I'm trying to give the user a 30 free day trial via the following code:
On checkout it's displaying "29 days free". I've spoke to Stripe and they say that trial_period_days should be used in the payload instead. This is because setting trial_expires will be the date upon when the stripe session was created. However I believe the trial should expire x amount of days from when the subscription is actually created. I'm happy to create a PR for this if agreed?
Steps To Reproduce: