import yoomoney
from yoomoney import *
client_id = '***'
token1 = "***"
from yoomoney import Quickpay
quickpay = Quickpay(
receiver="***",
quickpay_form="shop",
targets="Tips",
paymentType="SB",
sum='2',
label='a1b2c3d4e5'
)
from yoomoney import Client
token = "***"
client = Client(token)
history = client.operation_history(label="a1b2c3d4e5")
print("List of operations:")
print("Next page starts with: ", history.next_record)
for operation in history.operations:
print()
print("TEST")
print("Operation:", operation.operation_id)
print("\tStatus -->", operation.status)
print("\tDatetime -->", operation.datetime)
print("\tTitle -->", operation.title)
print("\tPattern id -->", operation.pattern_id)
print("\tDirection -->", operation.direction)
print("\tAmount -->", operation.amount)
print("\tLabel -->", operation.label)
print("\tType -->", operation.type)