node-integritypays

1.1.2 • Public • Published

node-integritypays

Integritypays API wrapper for Node.js, fully promisified

Initialization

var integrity = require('node-integritypays');
var conf = {
    username: '_your_username_',
    password: '_your_password_'
    merchant: _your_merchant_,
    environment: 'sandbox'
};
var Integrity = new integrity(conf);

Usage

Integrity.Customer.Create(
{
    info:
    {
        id: 1,
        businessName: 'MI6',
        firstName: 'James',
        lastName: 'Bond',
        phone: '(007) 007-0007',
        email: 'james@bond.com'
    },
    address:
    {
        street: '1 Secret Avenue',
        unit: '0',
        city: 'London'
    }
}).then(function (res)
{
    // Mission success
}).catch(function (err)
{
    // Bond blew things up
});
Integrity.Customer.Update(
{
    foreignKey: __your_customer_id__,
    info:
    {
        id: 1,
        businessName: 'MI6',
        firstName: 'James',
        lastName: 'Smith'
    }
});
Integrity.Card.Create(
{
    foreignKey: __your_customer_id__,

    nameOnCard: 'Q',
    cardNumber: '_sandbox_card_number_',
    exp: '0199'
});
Integrity.Card.Sale(
{
    foreignKey: __your_card_id__,
    amount: 1
});

Readme

Keywords

Package Sidebar

Install

npm i node-integritypays

Weekly Downloads

3

Version

1.1.2

License

none

Unpacked Size

39.4 kB

Total Files

7

Last publish

Collaborators

  • nickchapleau
  • glesage
  • eahenke