@darkwolf/qiwi

QIWI API

Usage no npm install needed!

<script type="module">
  import darkwolfQiwi from 'https://cdn.skypack.dev/@darkwolf/qiwi';
</script>

README

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, options[account, comment, currency, amount, canEditAccount, canEditComment, canEditAmount]?)

getQiwiPaymentUrl(phoneNumber, options[comment, currency, amount, canEditAccount, canEditComment, canEditAmount]?)

getQiwiNicknamePaymentUrl(nickname, options[comment, currency, amount, canEditAccount, canEditComment, canEditAmount]?)

processUpdate(data)

Types

User

WebhookInfo

Account

Balance

Payment

Update