1.0.6 • Published 5 years ago

culqi2-node v1.0.6

Weekly downloads
29
License
MIT
Repository
github
Last release
5 years ago

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.

1.0.6

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago