New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

freekassa-node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freekassa-node

Generate URL for payment in Freekassa.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

Generate URL for payment in Freekassa (Old Free-kassa).

Installation

npm i freekassa-node

Usage

const freekassa = require("freekassa-node");

console.log(
  freekassa(
    {
      oa: "99",
      o: "ID_234",
      m: "14963",
      currency: "USD",
    },
    "secret_word_1"
  )
);
/* =>
{
    "signature": "dfc2448091e2cc4191fc283435593e21",
    "url": "https://pay.freekassa.ru/?
        oa=99&
        o=ID_234&
        m=14963&
        currency=USD&
        s=dfc2448091e2cc4191fc283435593e21"
}
 */

console.log(
  freekassa(
    {
      AMOUNT: "99",
      MERCHANT_ORDER_ID: "ID_234",
      MERCHANT_ID: "14963",
    },
    "secret_word_2"
  )
);
/* =>
{
    "signature": "c0905625cf96d7730487a4dda69c6a09"
}
 */

API

freekassa(params, word)

params

Type: object

URL parameters.

word

Type: string

Freekassa secret word 1|2.

Test

npm test

Keywords

freekassa

FAQs

Package last updated on 20 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts