From e3b82bb3dde923956a34bedd99b2494e9922ae40 Mon Sep 17 00:00:00 2001 From: Artyom Ashirov <1323ED5@gmail.com> Date: Thu, 5 Dec 2024 16:18:27 +0300 Subject: [PATCH] pay with main balance --- src/handlers/userHandlers/userProductHandler.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/handlers/userHandlers/userProductHandler.js b/src/handlers/userHandlers/userProductHandler.js index 5107030..fa4e1e8 100644 --- a/src/handlers/userHandlers/userProductHandler.js +++ b/src/handlers/userHandlers/userProductHandler.js @@ -535,10 +535,7 @@ Subcategory: ${product.subcategory_name} const keyboard = { inline_keyboard: [ - ...cryptoWallets.map(wallet => [{ - text: `Pay with ${wallet.wallet_type}`, - callback_data: `pay_with_${wallet.wallet_type}_${productId}_${quantity}` - }]), + [{ text: `Pay`, callback_data: `pay_with_main_${productId}_${quantity}` }], [{text: '« Cancel', callback_data: `shop_product_${productId}`}] ] }; @@ -547,8 +544,7 @@ Subcategory: ${product.subcategory_name} `🛒 Purchase Summary:\n\n` + `Product: ${product.name}\n` + `Quantity: ${quantity}\n` + - `Total: $${totalPrice}\n\n` + - `Select payment method:`, + `Total: $${totalPrice}\n`, { chat_id: chatId, message_id: callbackQuery.message.message_id,