Created
September 9, 2019 14:58
-
-
Save vanbo/7b417ac1f18753301b6513728bb1f745 to your computer and use it in GitHub Desktop.
WC Psigate Modify API URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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