13.21.69 • Published 4 years ago

@darkwolf/qiwi v13.21.69

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

QIWI API

Install

npm i --save @darkwolf/qiwi

Usage

const { Qiwi } = require('@darkwolf/qiwi')
const qiwi = new Qiwi(token)

const user = await qiwi.getMe()
const paymentUrl = qiwi.getQiwiPaymentUrl('+79526976969', {
  comment: 'Ave, Darkwolf!', // use comment for your processing via webhook
  currency: 'RUB',
  amount: 5000
})
// or use nickname
const nicknamePaymentUrl = qiwi.getQiwiNicknamePaymentUrl('PAVELWOLFDARK', {
  comment: 'Ave, Darkwolf!',
  currency: 'RUB',
  amount: 5000
})

Methods

getMe()

getAccounts()

getDefaultAccount()

getBalance()

getWebhookInfo()

setWebhook(url, type?)

deleteWebhook()

testWebhook()

getPaymentUrl(providerId, optionsaccount, comment, currency, amount, canEditAccount, canEditComment, canEditAmount?)

getQiwiPaymentUrl(phoneNumber, optionscomment, currency, amount, canEditAccount, canEditComment, canEditAmount?)

getQiwiNicknamePaymentUrl(nickname, optionscomment, currency, amount, canEditAccount, canEditComment, canEditAmount?)

processUpdate(data)

Types

User

WebhookInfo

Account

Balance

Payment

Update

13.21.69

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago