Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

culqi2-node

martoriro148MIT1.0.6

Culqi API v2 Node.js Wrapper

culqi, payment, peru, node, nodejs, culqi2

readme

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.