Handler Yookassa#

Manage Yookassa-Payment System#

class handler_yookassa.Yookassa[source]#

Class of manage operations for Yookassa.

async static auth(file_path='bot.json')[source]#

Authorization in Yookassa API.

Parameters:

file_path – File path.

Returns:

None.

Return type:

None

async static check_payment(payment_id, tg_id)[source]#

Check payment by confirmation id.

Parameters:
  • payment_id (str) – Payment confirmation id.

  • tg_id (int) – TG ID.

Returns:

Tuple with result.

Return type:

tuple

async static create_payment(email)[source]#

Create yookassa-payment and send the receipt to the customer.

Parameters:

email (str) – Email of the user.

Returns:

Tuple with data.

Return type:

tuple