A few months back this string was posted “PayPal Recurring Billing on 1st of Month”
and the code that was used was:
date_default_timezone_set('America/New_York');
$days_in_month = date('t');
$days_left = $days_in_month - date('j');
$prorated_payment = number_format((10 / $days_in_month * $days_left), 2);
echo do_shortcode('[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="1A Membership: This month prorated @ $' . $prorated_payment . ', then $10.00/Month (recurring charge, for ongoing access)" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.healthsuccesscenter.com" ta="' . $prorated_payment . '" tp="' . $days_left . '" 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="clean" /]');
I would also like to have this function, but I am not sure where to put it or how it should be formatted to work correctly.
I have a wp-content/mu-plugins/s2-hacks.php file set up
with
saved to the file, and I am not sure where to go from there.
Appreciate the time,
Thanks Laura
-
This topic was modified 3 years, 4 months ago by
L..
-
This topic was modified 3 years, 4 months ago by
L..
-
This topic was modified 3 years, 4 months ago by
L..
-
This topic was modified 3 years, 3 months ago by
L..