This proxy is meant to proxy the integration API and logs the incoming requests from both PaymentIQ and the merchants requests towards PaymentIQ. Can be usefull for debugging purposes.
- Install NodeJs and make sure it's working (simply write node --version in a console/terminal)
- Make sure NPM was also installed with node, so run
npm --version. If it isn't installed, install it. Heres a guide - Install ngrok
- Cd into the "mock-piq-integration" directory.
cd my/path/to/piq-proxy - Run
npm install - Use ngrok to tunnel port 3001 ->
./ngrok http 3001(note that you'll need to cd to the dir where ngrok was unzipped on mac) - Open the file
config.json, paste in the integration URL that's currently in the MerchantConfig - Run
npm run startin the mock-piq-integration directory -> This will then start the application - Now go to your MID in PaymentIQ --> Admin --> Configuration --> MerchantConfig. Here you will need to change the
integrationServicevalue tostandardMerchantIntegrationServiceand add {YOUR_NGROK_HTTPS_URL_HERE}/api/{action}, example:
<apiIntegrationUrl>https://0094-185-139-247-194.ngrok.io/api/{action}</apiIntegrationUrl>
<integrationService>standardMerchantIntegrationService</integrationService>note that the /api might not be needed. Check if the current URL has /something/{action}
You can change the port that the application runs on in config.json