Answer the question
In order to leave comments, you need to log in
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
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('+')
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 questionAsk a Question
731 491 924 answers to any question