Have ideas to improve npm?Join in the discussion! »

    safecharge

    0.0.9 • Public • Published

    SafeCharge REST API SDK for Node

    SafeCharge’s Node Library provides developer tools for accessing Safecharge's REST API. SafeCharge’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 SafeCharge’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 SafeCharge REST API documentation, please see: https://www.safecharge.com/docs/api/

    Install

    $ npm i safecharge
    

    Usage

    Exapmple:

    const safecharge = require('safecharge');
    safecharge.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:

    safecharge.setAlgorithm('md5');
    

    Install

    npm i safecharge

    DownloadsWeekly Downloads

    42

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    40.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar