Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

free-kassa

1.0.0 • Public • Published

free-kassa

Free Kassa (Merchant & Wallet) API.

Install

$ npm i free-kassa -S

Methods

constructor(settings)

Create instance of FreeKassa.

  • settings - object settings
    • firstSecret - first secret of your merchant
    • secondSecret - second secret of your merchant
    • merchantId - merchant's id
    • walletToken - wallet's token
    • walletId - wallet's id

.getForm(orderAmount, orderId)

Returns a URL to payment form.

.getFormSign(orderAmount, orderId)

Returns a sign for payment form.

.getPaymentSign(orderAmount, orderId)

Returns a sign for payment.

.getBalance() ⇒ [Promise]

Returns a wallet's balance.

.sendPayment(settings) ⇒ [Promise]

Send payment to the user.

  • settings - object settings
    • wallet - receiver's wallet
    • amount - payment's amount
    • currency - payment's currency
    • description - payment's description

License

MIT.

Install

npm i free-kassa

DownloadsWeekly Downloads

20

Version

1.0.0

License

MIT

Unpacked Size

5.1 kB

Total Files

6

Last publish

Collaborators

  • avatar