ERROR: Unexpected txn_type/status.
The txn_type/status did not meet requirements.
Please contact Support for assistance.', "s2member-front", "s2member"),/**/
_x ("Back To Home Page", "s2member-front", "s2member"), home_url ("/"));
}
}
else /* Else a custom conditional has been applied by filters. */
unset ($__refs, $__v); /* Unset defined __refs, __v. */
}
else /* Else, use the default ``$_SERVER["HTTP_HOST"]`` error. */
{
$paypal["s2member_log"][] = "Unable to verify `\$_SERVER[\"HTTP_HOST\"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.";
/**/
$paypal["s2member_log"][] = "Redirecting Customer to the Home Page, due to an error that occurred.";
/**/
echo c_ws_plugin__s2member_return_templates::return_template ($paypal["subscr_gateway"],/**/
_x ('ERROR: Unable to verify $_SERVER["HTTP_HOST"].
Please contact Support for assistance.
If you are the site owner, please check the custom value in your Button Code. It MUST start with your domain name.', "s2member-front", "s2member"),/**/
_x ("Back To Home Page", "s2member-front", "s2member"), home_url ("/"));
}
}
else /* In this case ... a Proxy has explicitly requested `ty-email` processing. */
{
$paypal = $_paypal_cp = c_ws_plugin__s2member_paypal_return_in_proxy_ty_email::cp (get_defined_vars ());
}
}
else if (!empty ($_GET["s2member_paypal_proxy"]) && !empty ($_GET["s2member_paypal_proxy_use"]) && preg_match ("/x-preview/", $_GET["s2member_paypal_proxy_use"]) && ($paypal["subscr_gateway"] = esc_html (trim (stripslashes ($_GET["s2member_paypal_proxy"])))))
{
$paypal = $_paypal_cp = c_ws_plugin__s2member_paypal_return_in_proxy_x_preview::cp (get_defined_vars ());
}
else if (empty ($_GET["tx"]) && empty ($_GET["s2member_paypal_proxy"]) && ($paypal["subscr_gateway"] = "paypal"))
{
$paypal = $_paypal_cp = c_ws_plugin__s2member_paypal_return_in_no_tx_data::cp (get_defined_vars ());
}
else /* Extensive log reporting here. This is an area where many site owners find trouble. Depending on server configuration; remote HTTPS connections may fail. */
{
$paypal["s2member_log"][] = "Unable to verify \$_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.";
$paypal["s2member_log"][] = "If you're absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure \$_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.";
$paypal["s2member_log"][] = "s2Member uses the `WP_Http` class for remote connections; which will try to use `cURL` first, and then fall back on the `FOPEN` method when `cURL` is not available. On a Windows® server, you may have to disable your `cURL` extension; and instead, set `allow_url_fopen = yes` in your php.ini file. The `cURL` extension (usually) does NOT support SSL connections on a Windows® server.";
$paypal["s2member_log"][] = "Please see this thread: `http://www.primothemes.com/forums/viewtopic.php?f=36&t=2636` for details regarding the ideal server configuration for s2Member.";
$paypal["s2member_log"][] = var_export ($_REQUEST, true); /* Recording _POST + _GET vars for analysis and debugging. */
/**/
$paypal["s2member_log"][] = "Redirecting Customer to the Home Page, due to an error that occurred.";
/**/
echo c_ws_plugin__s2member_return_templates::return_template ("default",/**/
_x ('ERROR: Unable to verify $_POST vars.
Please contact Support for assistance.
This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility. If you are the site owner, and you\'re absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.
s2Member uses the WP_Http class for remote connections; which will try to use cURL first, and then fall back on the FOPEN method when cURL is not available. On a Windows® server, you may have to disable your cURL extension; and instead, set allow_url_fopen = yes in your php.ini file. The cURL extension (usually) does NOT support SSL connections on a Windows® server.
Please see this thread for details regarding the ideal server configuration for s2Member.', "s2member-front", "s2member"),/**/
_x ("Back To Home Page", "s2member-front", "s2member"), home_url ("/"));
}
/*
Add RTN proxy ( when available ) to the ``$paypal`` array.
*/
if (!empty ($_GET["s2member_paypal_proxy"]))
$paypal["s2member_paypal_proxy"] = $_GET["s2member_paypal_proxy"];
/*
Add IPN proxy use vars ( when available ) to the ``$paypal`` array.
*/
if (!empty ($_GET["s2member_paypal_proxy_use"]))
$paypal["s2member_paypal_proxy_use"] = $_GET["s2member_paypal_proxy_use"];
/*
Also add RTN proxy self-verification ( when available ) to the ``$paypal`` array.
*/
if (!empty ($_GET["s2member_paypal_proxy_verification"]))
$paypal["s2member_paypal_proxy_verification"] = $_GET["s2member_paypal_proxy_verification"];
/*
Also add RTN success redirection URL ( when available ) to the ``$paypal`` array.
*/
if (!empty ($_GET["s2member_paypal_return_success"]))
$paypal["s2member_paypal_return_success"] = $_GET["s2member_paypal_return_success"];
/*
Also add RTN t and r Attributes ( when available ) to the ``$paypal`` array.
*/
if (!empty ($_GET["s2member_paypal_return_tra"]))
$paypal["s2member_paypal_return_tra"] = $_GET["s2member_paypal_return_tra"];
/*
If debugging/logging is enabled; we need to append $paypal to the log file.
Logging now supports Multisite Networking as well.
*/
$logv = c_ws_plugin__s2member_utilities::ver_details ();
$logm = c_ws_plugin__s2member_utilities::mem_details ();
$log4 = $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] . "\nUser-Agent: " . $_SERVER["HTTP_USER_AGENT"];
$log4 = (is_multisite () && !is_main_site ()) ? ($_log4 = $current_blog->domain . $current_blog->path) . "\n" . $log4 : $log4;
$log2 = (is_multisite () && !is_main_site ()) ? "paypal-rtn-4-" . trim (preg_replace ("/[^a-z0-9]/i", "-", $_log4), "-") . ".log" : "paypal-rtn.log";
/**/
if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["gateway_debug_logs"])
if (is_dir ($logs_dir = $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["logs_dir"]))
if (is_writable ($logs_dir) && c_ws_plugin__s2member_utils_logs::archive_oversize_log_files ())
file_put_contents ($logs_dir . "/" . $log2, $logv . "\n" . $logm . "\n" . $log4 . "\n" . var_export ($paypal, true) . "\n\n", FILE_APPEND);
/**/
eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action ("ws_plugin__s2member_during_paypal_return", get_defined_vars ());
unset ($__refs, $__v); /* Unset defined __refs, __v. */
/**/
exit (); /* Clean exit. */
}
/**/
eval ('foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;');
do_action ("ws_plugin__s2member_after_paypal_return", get_defined_vars ());
unset ($__refs, $__v); /* Unset defined __refs, __v. */
}
}
}
?>