Handler successful payment#

Manage successful payment#

Module of the control successful payments.

class handler_successful_payment.HandlerSP[source]#

Class-handler for successful payments.

async static add_new_record(bot, message, admin_id, mode='TGStar', yookassa_ref_token='yookassa')[source]#

Add a new record in database.

Parameters:
  • bot (Bot) – The object of Telegram Bot.

  • message (aiogram.types.message.Message | aiogram.types.callback_query.CallbackQuery) – Message of the successful payment by Stars.

  • admin_id (int) – Telegram Admin ID.

  • mode – Mode of process successful payment.

  • yookassa_ref_token – Yookassa refund-token.

Returns:

bool.

Return type:

None