Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created October 14, 2015 15:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strangerstudios/9ab1772e39291c197a25 to your computer and use it in GitHub Desktop.
Save strangerstudios/9ab1772e39291c197a25 to your computer and use it in GitHub Desktop.
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