invoice payment! prerelease
This commit is contained in:
@@ -32,3 +32,15 @@ def payment_link(url: str) -> InlineKeyboardMarkup:
|
||||
return InlineKeyboardBuilder(
|
||||
[[InlineKeyboardButton(text="💸 Оплатить", url=url)]]
|
||||
).as_markup()
|
||||
|
||||
|
||||
def verify_payment(invoice_id: int):
|
||||
return InlineKeyboardBuilder(
|
||||
[
|
||||
[
|
||||
InlineKeyboardButton(
|
||||
text="🟢 Подтвердить", callback_data=f"verify_payment:{invoice_id}"
|
||||
)
|
||||
]
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
@@ -221,3 +221,16 @@ def order_specs_confirmation(order_id: int) -> InlineKeyboardMarkup:
|
||||
[InlineKeyboardButton(text="❌", callback_data="menu:main")],
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
|
||||
def confirm_payment(invoice_id: int):
|
||||
return InlineKeyboardBuilder(
|
||||
[
|
||||
[
|
||||
InlineKeyboardButton(
|
||||
text="✅ Подтвердить оплату",
|
||||
callback_data=f"refresh_payment:{invoice_id}",
|
||||
)
|
||||
]
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
Reference in New Issue
Block a user