I’m using @raamdev awesome post to generate a dynamic trial period that sets a specific day for all members to start paying for their subscription.
My client wants their members to start payment for their yearly subscription on 31st July 2016. However this poses a problem because the dynamic trial period will start from 159 days if someone was to register today.
S2member does not allow the trial period in days to go beyond 90 days due to PayPal subscription restrictions e.g. 90 days, 52 weeks, 1 Year.
Do I just convert it to weeks by altering this piece of code: $trial_days = floor($difference/60/60/168);
Some insight would be great here.