npm.io
1.1.2 • Published 2 years ago

paycek

Licence
MIT
Version
1.1.2
Deps
1
Size
12 kB
Vulns
0
Weekly
0
Stars
1

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));

Keywords