Hi Thomas,
My apologies for the delay on this. I heard back from the lead developer and this is what he said:
“Great question. s2Member Pro does support response filters from the Authorize.Net APIs.
Please create this directory and file to eliminate the response code from the error message, and instead report only the textual representation reported by Authorize.Net. With a little more hacking/understanding, a site owner could certainly work some magic of their own (i.e. custom messages for certain error codes).”
/wp-content/mu-plugins/s2-hacks.php
<?php
add_filter('ws_plugin__s2member_pro_authnet_aim_response', 'my_authnet_response_filter');
add_filter('ws_plugin__s2member_pro_authnet_arb_response', 'my_authnet_response_filter');
function my_authnet_response_filter($response = array())
{
if(!empty($response['__error']))
{
$response['__error'] = $response["response_reason_text"]; // Use error text only (excluding error codes).
// See also: $response['response_reason_code'] to help identify certain response codes (if you like).
// When debugging, use print_r($response) for a full list of data about each response.
// Also check the /s2m-pro-extras.zip file, for the documentation regarding the Authorize.Net API error codes.
}
return $response;
}
?>