Statistics: Posted by hcibrent — September 6th, 2011, 1:56 pm
Sorry, no. While it IS possible to handle redirection in a custom way on success, it is NOT possible to do this when an error occurs, s2Member handles this with error messages sent back to the Customer, at the top of your Pro Form integration.hcibrent wrote:
Yes, can we do the same thing for declines?
Just curious. Thanks.
<?php
add_filter ("ws_plugin__s2member_paypal_api_response", "my_s2_errors");
function my_s2_errors ($response = array ())
{
if (!empty ($response["__error"]) && !empty ($response["L_ERRORCODE0"]))
{
if ((int)$response["L_ERRORCODE0"] === 10422)
$response["__error"] = "Transaction declined. Please use an alternate funding source.";
}
/**/
return $response;
}
?>
Statistics: Posted by Jason Caldwell — September 6th, 2011, 1:51 pm
Statistics: Posted by hcibrent — September 2nd, 2011, 11:53 pm
Statistics: Posted by hcibrent — September 2nd, 2011, 7:55 pm
Statistics: Posted by Cristián Lávaque — September 2nd, 2011, 7:36 pm
Statistics: Posted by hcibrent — September 2nd, 2011, 2:16 am
Statistics: Posted by hcibrent — September 1st, 2011, 7:19 pm