free-kassa
v1.0.0
Published
Free Kassa (Merchant & Wallet) API.
Downloads
17
Readme
free-kassa
Free Kassa (Merchant & Wallet) API.
Install
$ npm i free-kassa -S
Methods
constructor(settings)
Create instance of FreeKassa.
settings
- object settingsfirstSecret
- first secret of your merchantsecondSecret
- second secret of your merchantmerchantId
- merchant's idwalletToken
- wallet's tokenwalletId
- 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 settingswallet
- receiver's walletamount
- payment's amountcurrency
- payment's currencydescription
- payment's description
License
MIT.