Demo application
Demo Application
We have a demo application which will show you how to access our Payment APIs and complete a 3DS Payment.
API Keys
- Visit our Developer Portal and generate a sandbox key.
- Take a note of this key and your secret key as you'll need it later
- Update your secret and API key within '/api/routes/main.js'
- Please note that you'll be running this on our production endpoint as our sandbox environment is a like for like (although no transactions will be executed!)
Setup
- Install NodeJs
- Install Yarn
- Open 2 terminals, one in 'api' and one in 'www'
- Run 'yarn install' inside of 'www'
- Run 'npm install' inside of 'api'
Running
- Run 'node server.js' inside of 'api'
- Run 'yarn start' inside of 'www'
- Visit 'http://localhost:3000/'
Notes
- To get an idea of what is taking place, open Chrome, open the developer console and enable 'preserve logs's
Updated 10 months ago