D
D
danyarubcov2019-01-08 00:24:41
Node.js
danyarubcov, 2019-01-08 00:24:41

Qiwi API + Node.js?

There is a ${curs} variable that changes every 5 minutes.
A payment link is created, the person pays.
How to accept payment?
That is, I need qiwi to send an answer that the payment with a comment has come, and charge the currency.
How can it be implemented?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
danyarubcov, 2019-01-08
@danyarubcov

vk.updates.hear(/^(?:коины)\s?([^]+)?/i,  message => {
        let rubik = acc.curs / 4 ;
             		let id = user_id(message.user); 
vk.api.call("utils.getShortLink", {url: `https://qiwi.com/payment/form/99?extra%5B%27account%27%5D=79523536684&amountInteger=${rubik}&amountFraction=0&extra%5B%27comment%27%5D=${id}+Rubines&currency=643&blocked[0]=account&blocked[1]=sum&blocked[2]=comment`}).then(function (res){
        return message.send("✨ ➾ Ваша ссылка для покупки :\n " + res.short_url);
       });
     });

E
everpi, 2019-01-14
@everpi

Manually by comment.
https://qiwi.com/api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question