Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

interkassa-node

botaniQQQ25MIT2.2.5

Generate URL for payment in Interkassa.

interkassa, free-kassa, freekassa, sci, url

readme

Generate URL for payment in Interkassa.

Installation

npm i interkassa-node

Usage

const interkassa = require('interkassa-node');

console.log(interkassa({
    "ik_am": "99",
    "ik_cur": "USD",
    "ik_pm_no": "ID_234",
    "ik_desc": "Subscription",
    "ik_co_id": "5cc1ee513d1eaf94728b4567",
}, 'vwi5pRmkRtH49uyp', true));
/* =>
{
    "signature": "biFyHlpFwbM4wWUoToZ4Ew==",
    "url": "https://sci.interkassa.com/?
        ik_am=99&
        ik_cur=USD&
        ik_pm_no=ID_234&
        ik_desc=Subscription&
        ik_co_id=5cc1ee513d1eaf94728b4567&
        ik_sign=biFyHlpFwbM4wWUoToZ4Ew%3D%3D",
}
 */

API

interkassa(params, key, signature)

params

Type: object

URL parameters.

key

Type: string

Interkassa secret key.

signature

Type: boolean

Add signature to URL or not.

Test

npm test