The Node.js SDK helps you to communicate with the payment platform server API. Its primary features are:
This repository consists out of two main components:
/src/
/tests/
Node.js 8 or higher is required.
From the folder where your package.json
is located, run the following command to install the SDK:
npm i onlinepayments-sdk-nodejs
From the root of the project install all dependencies:
npm install
The example integration tests run against a mock server set up with Prism, which returns a mock response based on the current OpenAPI specification of Online Payments.
The project must first be set up with the following commands:
npm install
npm ci
After that the tests can be run with the following commands:
npm run test