Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Point the Authorize.net integration to a different end point (e.g. to use an Authorize.net mirror API)
function my_pmpro_authorizenet_post_url($url, $environment)
{
if($environment == "sandbox")
$url = "https://domain.com/path-to-the-sandbox-endpoint/";
else
$url = "https://domain.com/path-to-the-live-endpoint/";
return $url;
}
add_filter('pmpro_authorizenet_post_url', 'my_pmpro_authorizenet_post_url', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.