Culqi2-node
Culqi API v2 wrapper for Node.js based in Culqi API v1.2 wrapper by giwiro
Installing
$ npm install culqi2-node
Usage
const Culqi = ; const culqi = privateKey publicKey;culqi;
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.