No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
mjancewicz Merge pull request #3 from agarbund/master
increased default timeout for integration tests
Latest commit 637842c May 27, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin added more tests and readme Jan 26, 2016
lib checkout request resource Feb 20, 2016
test increased timeout of integration tests to 60s for travis Feb 23, 2016
.gitignore added .idea to gitignore Feb 17, 2016
.travis.yml travis integration Feb 22, 2016
LICENSE license update Jan 27, 2016 Update May 27, 2016
package.json 1.0.0 Feb 22, 2016

Node.js library for SecurionPay API

Build status


npm install securionpay

Quick start

var api = require('securionpay')('sk_test_mysecretkey')

    email: '',
    description: 'User description'
}).then(function(customer) {
    return, {
        number: '4242424242424242',
        expMonth: '12',
        expYear: '2020',
        cvc: '123',
        cardholderName: 'John Smith'
}).then(function(card) {
    console.log('ID of created card object: ',;
}).catch(function(e) {
    // handle errors here

Bluebird is used as Promise library ( ).

Preferring callbacks? All methods accept callback as their last argument. Promise is not returned when passing callback.

    email: '',
    description: 'User description'
}, function(err, customer) {
    if(err) {
        // handle error
    } else {
        // handle response

API reference

When params is one of method arguments please refer to detailed API docs (linked) for all available fields


To connect to different backend:

var api = require('securionpay')('sk_test_mysecretkey', {
    url: '' // without trailing slash

To run unit tests and check test coverage:

npm test
npm run check-coverage

To run integration tests:

PRIVATE_KEY=sk_test_mysecretkey npm run integration-test

To run integration tests against environment other than default:

PRIVATE_KEY=sk_test_mysecretkey URL= npm run integration-test


For further information, please refer to our official documentation at