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

culqi2-node

1.0.6 • Public • Published

Culqi2-node

npm version Build Status Coverage Status License: MIT npm

Culqi API v2 wrapper for Node.js based in Culqi API v1.2 wrapper by giwiro

Installing

$ npm install culqi2-node

Usage

const Culqi = require('culqi2-node');
 
const culqi = new Culqi(privateKey, publicKey);
culqi.getCards();

privateKey: Private key given by Culqi publicKey: Public key given by Culqi

Currently available methods

Customers

  • createCustomer()
  • getCustomer()
  • getCustomers()
  • updateCustomer()
  • deleteCustomer()

Tokens

  • createToken()*

Cards

  • createCard()
  • getCard()
  • getCards()
  • updateCard()
  • deleteCard()

Charges

  • createCharge()
  • getCharge()
  • getCharges()
  • updateCharge()
  • captureCharge()

Events

  • getEvent()
  • getEvents()

For more info about method attributes visit Culqi API Docs. You could also see the tests on test folder.

*Token creation via API is not recommended and requires previous approval by Culqi, as noted here.

Tests

npm test

Contributing

Fork this and do whatever you want.

Install

npm i culqi2-node

DownloadsWeekly Downloads

31

Version

1.0.6

License

MIT

Unpacked Size

23.4 kB

Total Files

9

Last publish

Collaborators

  • avatar