PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
$paypal["MAXFAILEDPAYMENTS"] = "2";
$paypal["AUTOBILLOUTAMT"] = "AddToNextBilling";
$paypal["MAXFAILEDPAYMENTS"] = "1";
$paypal["AUTOBILLOUTAMT"] = "NoAutoBill";
0 – allows subscribers to only create new subscriptions
1 – allows subscribers to modify their current subscriptions or sign up for new ones
2 – allows subscribers to only modify their current subscriptions
Jason Caldwell wrote:Hi Allan. Thanks for the great questions.
Problem #1, appears to be related to this confusing aspect of PayPal®.
~ It's not a bug, it just creates some confusion during testing.
viewtopic.php?f=4&t=2894&p=8710#p8710
Problem #2, not a bug, but this configuration is hard-coded into the current release.
@TODO :: We need to at least provide Filters with the ability to change these values.
In the mean time, you can open this file and make the changes necessary.
/s2member-pro/includes/classes/gateways/paypal/paypal-checkout-in.inc.php
Find all occurrences of:
- Code: Select all
$paypal["MAXFAILEDPAYMENTS"] = "2";
$paypal["AUTOBILLOUTAMT"] = "AddToNextBilling";
Change the occurrences to this, if you prefer:
- Code: Select all
$paypal["MAXFAILEDPAYMENTS"] = "1";
$paypal["AUTOBILLOUTAMT"] = "NoAutoBill";
/* Automatically adjust to `modify="0"` ( when an Initial/Trial Period is configured ), and a User is either NOT logged-in, or has nothing to modify. */
$attr["modify"] = ($attr["modify"] === "1" && (!is_user_logged_in () || !get_user_option ("s2member_subscr_id")) && $attr["tp"]) ? "0" : $attr["modify"];
Users browsing this forum: Exabot [Bot] and 1 guest