@hounddesk/epayco-signature-verifier
v1.3.0
Published
ePayco Signature verifier used for transactions integrity checks
Downloads
3
Readme
epayco-signature-verifier
ePayco Signature verifier used for transactions integrity checks
- Follow up specific documentation here (in spanish only) (https://docs.epayco.co/payments/checkout)[https://docs.epayco.co/payments/checkout]
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 0.10 or higher is required.
Installation is done using the
npm install
command:
$ npm i @hounddesk/epayco-signature-verifier
Use the library
const { verify } = require('@hounddesk/epayco-signature-verifier');
const transactionIsLegit = verify({signature, transaction, separator})
Development
If you to contribute or run the project as standalone library
$ git clone [email protected]:hounddesk/epayco-signature-verifier.git --depth 1
$ cd epayco-signature-verifier
$ npm install
Then run the library in development mode:
$ npm run start:dev
This library is build with TypeScript, you need to build the source first:
$ npm run build
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm i
$ npm test