paycek
v1.1.2
Published
A connector library for communicating with PayCek public API
Downloads
27
Maintainers
Readme
Paycek
This is an official package for the Paycek crypto payment processor. The documentation provided in code explains only minor implementation details.
For in depth information about endpoints, fields and more, read our API Documentation.
Quick Start
Installation
Install package with npm.
npm install paycek
Initialization
Under account settings you’ll find your API key and secret. Initialize a paycek instance.
const Paycek = require('paycek');
const paycek = new Paycek('<apiKey>', '<apiSecret>');
Usage
Get payment
paycek.getPayment({
paymentCode: "<paymentCode>"
})
.then((result) => console.log(JSON.stringify(result.body)))
.catch((error) => console.log(error));
Open payment
paycek.openPayment({
profileCode: "<profileCode>",
dstAmount: "<dstAmount>"
})
.then((result) => console.log(JSON.stringify(result.body)))
.catch((error) => console.log(error));