latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

PayPal Recurring Billing on 1st of Month cont

Home Forums Community Forum PayPal Recurring Billing on 1st of Month cont

This topic contains 0 replies, has 1 voice. Last updated by  L. 3 years, 4 months ago.

Topic Author Topic
Posted: Monday Sep 2nd, 2013 at 1:55 pm #58986
L.
Username: Laurakcusack

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..

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.