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.
Install package with npm.
npm install paycek
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>');
paycek.getPayment({
paymentCode: "<paymentCode>"
})
.then((result) => console.log(JSON.stringify(result.body)))
.catch((error) => console.log(error));
paycek.openPayment({
profileCode: "<profileCode>",
dstAmount: "<dstAmount>"
})
.then((result) => console.log(JSON.stringify(result.body)))
.catch((error) => console.log(error));