1.0.0 • Published 8 years ago
free-kassa v1.0.0
free-kassa
Free Kassa (Merchant & Wallet) API.
Install
$ npm i free-kassa -SMethods
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.
1.0.0
8 years ago