Hi Cristian,
Thanks for your response. Here is the PHP and shortcode I am currently testing. PayPal charges the 1st month’s prorated payment, but I think the next payment date is on the anniversary of the day the member signed up (a month has not gone by, so I can’t test the next billing cycle).
This PHP:
date_default_timezone_set('America/New_York');
$days_in_month = date("t");
$price_per_day = round(10/$days_in_month, 2);
$days_left = date('t') - date('j');
$prorated_payment = round($days_left * $price_per_day, 2);
echo do_shortcode('[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="1A Membership: This month prorated @ $' . number_format($prorated_payment,2) . ', then $10.00/Month (recurring charge, for ongoing access)" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.healthsuccesscenter.com" ta="' . number_format($prorated_payment,2) . '" tp="1" tt="M" ra="10.00" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="clean" /]');
Generates this shortcode:
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="1A Membership: This month prorated @ $8.96, then $10.00/Month (recurring charge, for ongoing access)" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.healthsuccesscenter.com" ta="8.96" tp="1" tt="M" ra="10.00" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="clean" /]
…….
The next shortcode has us charging a fee per day for the remaining days in the month, which will get us to the monthly billing on the 1st of the next month, but PayPal is making charges DAILY to the member’s card (which will be annoying to the member and VERY expensive for me).
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="1A Membership: 28 Days @ $0.32 / then $10.00 USD / Monthly ( recurring charge, for ongoing access )" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.healthsuccesscenter.com" ta="0.32" tp="28" tt="D" ra="10.00" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
I need the best of both versions for it to work for me: charge a flat fee for the remaining number of days in the month, then start the regular monthly billing cycle on the 1st of the months going forward.
What I need is for PayPal to charge a flat fee today, then start the regular monthly billing cycle on the 1st of the next month.