interkassa-node

2.2.5 • Public • Published

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

Package Sidebar

Install

npm i interkassa-node

Weekly Downloads

1

Version

2.2.5

License

MIT

Unpacked Size

3.08 kB

Total Files

4

Last publish

Collaborators

  • botaniqqq