P
P
pilityxxx2020-06-29 12:24:34
Python
pilityxxx, 2020-06-29 12:24:34

How to make sure that when replenishing the balance of Yandex money, the message “+” comes to the command line. In python?

How to make sure that when replenishing the balance of Yandex money, the message "+" comes to the command line. In python.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
ScriptKiddo, 2020-06-29
@pilityxxx

1) Install yandex-money-sdk-python
2) Check balance like this

account_info = api.account_info()
balance = account_info['balance'] 

while True:
    sleep(5)
    account_info = api.account_info()
    new_balance = account_info['balance'] 
    if new_balance != balance:
        balance = new_balance
        print('+')

You just have to link a specific payment to a specific person and not fly into a ban after two incoming payments

A
alekssamos, 2020-08-16
@alekssamos

In general, it's better to create a web server, for example, via flask and set a callback to your URL.
Incoming transfer notification

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question