UNPKG

nuvei

Version:

Nuvei digital REST API wrapper for Nodejs

29 lines (19 loc) 1.04 kB
# Nuvei REST API SDK for Node Nuvei’s Node Library provides developer tools for accessing Nuvei's REST API. Nuvei’s REST API is a simple, easy to use, secure and stateless API, which enables online merchants and service providers to process consumer payments through Nuvei’s payment gateway. The API supports merchants of all levels of PCI certification, from their online and mobile merchant applications, and is compatible with a large variety of payment options, i.e. payment cards, alternative payment methods, etc. For Nuvei ( former SafeCharge) REST API documentation, please see: https://www.safecharge.com/docs/api/ ## Install ``` $ npm i nuvei ``` ## Usage Exapmple: ```js const nuvei = require('nuvei'); nuvei.initiate(<merchantId>, <merchantSiteId>, <merchantSecretKey>, <env>); // env is optional can be 'test' or 'prod' // the last parameter has a default value of 'prod' if omitted ``` Default hashing algorithm is sha256, but if your account still uses md5 you may need to call: ``` nuvei.setAlgorithm('md5'); ```