1.1.2 • Published 4 years ago

node-integritypays v1.1.2

Weekly downloads
40
License
-
Repository
github
Last release
4 years ago

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
});
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

5 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago