How are free trial days left calculated by shopify?

sharanbrar
New Member
1 0 0

I have created a 7 day free trial for new app users and want to show inside the app how many days of free trial are left. 
I reduce the number of days after every 24 hours from when the app was installed, but have noticed that shopify calculates the days left in a different way and sometimes reduces the days left earlier than I do, which causes confusion for the users.
Does anyone understands how shopify calculates the days left?

0 Likes
bburke4
Tourist
4 1 0

I just check the 

"trial_ends_on"=>"2021-01-01",

field in the RecurringApplicationCharge response object. I believe it is set when the charge is activated

0 Likes