free-kassa-api
v1.0.5
Published
free-kassa api for node.js
Downloads
35
Maintainers
Readme
FREE-KASSA API
Free-Kassa Merchant API.
Install
$ npm i free-kassa-api
Methods
.createFormURL(orderAmount, orderId, {extraParameters})
Returns a URL to payment form.
.createFirstSign(orderAmount, orderId)
Returns sign for payment form
.createSecondSign(orderAmount, orderId)
Returns payment sign
Usage
var freekassa = require('free-kassa-api');
var FK = new freekassa('merchantId', 'firstSecretPhrase', 'secondSecretPhrase', 'currency');
var url = FK.createFormURL('amount', 'id', {
extraParameter1: 'example',
extraParameter2: '1'
});