Skip to content

eddie-englund/piq-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaymentIQ Proxy

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.

Setup

  1. Install NodeJs and make sure it's working (simply write node --version in a console/terminal)
  2. Make sure NPM was also installed with node, so run npm --version. If it isn't installed, install it. Heres a guide
  3. Install ngrok
  4. Cd into the "mock-piq-integration" directory. cd my/path/to/piq-proxy
  5. Run npm install
  6. 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)
  7. Open the file config.json, paste in the integration URL that's currently in the MerchantConfig
  8. Run npm run start in the mock-piq-integration directory -> This will then start the application
  9. Now go to your MID in PaymentIQ --> Admin --> Configuration --> MerchantConfig. Here you will need to change the integrationService value to standardMerchantIntegrationService and 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}

Changing port

You can change the port that the application runs on in config.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published