The goal is to write a simple app using the Scalapay API.
Our Scalapay API docs can be found here: API DOC LINK
Please write an interface that:
-
Displays configuration
- Presents the v2/configuration response to the user
-
Create an order
- Prompt the user to enter the fields required to create an order
- Call the v2/orders endpoint
- Redirect the user to the checkoutUrl provided in the response
$ git clone [email protected]:xyzcocktail/scalapay-nodejs.git
$ cd scalapay-nodejs
$ yarn install (or npm install)
$ yarn test (or jest)
$ yarn start (or npm run start)
- Open browser http://localhost:3000
$ git clone [email protected]:xyzcocktail/scalapay-nodejs.git
$ cd scalapay-nodejs
$ docker build -t scalapay-node-app .
$ docker run -p 3000:3000 -d scalapay-node-app
- Open browser http://localhost:3000