Statistics: Posted by Cristián Lávaque — October 27th, 2011, 10:26 pm
Statistics: Posted by Cristián Lávaque — October 26th, 2011, 11:20 pm
Statistics: Posted by godrob — October 26th, 2011, 10:42 am
Statistics: Posted by Eduan — October 26th, 2011, 10:38 am
Statistics: Posted by godrob — October 26th, 2011, 10:32 am
Statistics: Posted by Eduan — October 26th, 2011, 10:15 am
Thank you. Please login.
. div appear on the registration form.
Thank you. Please login
/**
* Creates response divs after Registration processing.
*
* @package s2Member\PayPal
* @since 1.5
*
* @param array $attr An array of Pro Form Attributes.
* @return array An array of response details.
*/
public static function paypal_registration_response ($attr = FALSE)
{
$_response = $GLOBALS["ws_plugin__s2member_pro_paypal_registration_response"];
/**/
$_response = (!$_response) ? c_ws_plugin__s2member_pro_paypal_responses::paypal_form_attr_validation_errors ($attr) : $_response;
/**/
if ($_response && ($error = $_response["error"])) /* Error reporting. */
{
$response = '<div id="s2member-pro-paypal-form-response" class="s2member-pro-paypal-form-response-error s2member-pro-paypal-registration-form-response-error">';
$response .= $_response["response"];
$response .= '</div>';
}
else if ($_response) /* Otherwise, we treat this as an informational response. */
{
$response = '<div id="s2member-pro-paypal-form-response" class="s2member-pro-paypal-form-response-info s2member-pro-paypal-registration-form-response-info">';
$response .= $_response["response"];
$response .= '</div>';
wp_redirect( '/activate-your-account/' );
}
/**/
Statistics: Posted by godrob — October 26th, 2011, 10:02 am