R
R
RoninEn2019-06-11 01:03:43
Node.js
RoninEn, 2019-06-11 01:03:43

Node js + Qiwi Transactions?

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?

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);
       });
     });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question