Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@vanbo
Created September 9, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanbo/7b417ac1f18753301b6513728bb1f745 to your computer and use it in GitHub Desktop.
Save vanbo/7b417ac1f18753301b6513728bb1f745 to your computer and use it in GitHub Desktop.
WC Psigate Modify API URLs
// Modify XML-API test URL
add_filter( 'wc_psigate_xml_test_url', 'prefix_modify_xml_api_test_url' );
function prefix_modify_xml_api_test_url($url) {
// Put any url in the place of the example one
return 'https://staging.psigate.com:27989/Messenger/XMLMessenger';
}
// Modify Account Manager API test URL
add_filter( 'wc_psigate_manager_test_url', 'prefix_modify_account_manager_test_url' );
function prefix_modify_account_manager_test_url($url) {
// Put any url in the place of the example one
return 'https://accountsstaging.psigate.com/xml';
}
// Modify Psigate HTML API
add_filter( 'wc_psigate_html_test_url', 'prefix_modify_html_test_url' );
function prefix_modify_html_test_url($url) {
// Put any url in the place of the example one
return 'https://stagingcheckout.psigate.com/HTMLPost/HTMLMessenger';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment