Answer the question
In order to leave comments, you need to log in
How to make sure that when replenishing a Qiwi wallet, the money goes to another Qiwi wallet?
I'm making a website, you need to make a mini-exchanger from a Qiwi wallet to a Qiwi wallet, a person enters the amount (let's say 500 rubles), after which he is shown the amount minus the commission (500 rubles - 1% = 495 rubles), enters the phone number to which they should come money minus commission.
Money (500 rubles) must be transferred to the Qiwi wallet (exchanger), after which, from the Qiwi wallet of the exchanger, minus the commission, it should be transferred to that Qiwi wallet (the number of which the person indicated on the site).
Answer the question
In order to leave comments, you need to log in
First, you need to hook up the payment acceptance handler. Either hack the script in puff, to which callbacks from kiwi arrive, or, in python or another language, monitor the history of payments via api.
Secondly, you need a daemon that spins on a server and checks some kind of queue (RabbitMQ is acceptable). Or zakolhozit (never do this :-) ) the queue for the DBMS (mysql or whatever you have there). This daemon catches a task from the queue and starts its execution - either all the data is in the task itself and stored in the queue, or only the request id in the database is in the queue. We pull all the necessary data and with a request to api qiwi we transfer money to the wallet indicated by the sender.
That's all the magic. Here, as already profesor08 pointed to the documentation -> https://developer.qiwi.com/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question