From db9b50240d7eb8400f645054f26bd4f98458a84f Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 5 Sep 2025 04:50:35 +0200 Subject: [PATCH] Implement Lightning payment handling in OrderHistory component - Replace the existing openLightningWallet function with payWithLightning for improved payment processing. - Introduce useLightningPayment composable to manage wallet payment logic and state. - Update button text dynamically based on payment status and wallet availability. - Enhance error handling and user feedback during payment attempts, ensuring a smoother user experience. --- .../market/components/OrderHistory.vue | 38 ++--- .../market/composables/useLightningPayment.ts | 159 ++++++++++++++++++ 2 files changed, 171 insertions(+), 26 deletions(-) create mode 100644 src/modules/market/composables/useLightningPayment.ts diff --git a/src/modules/market/components/OrderHistory.vue b/src/modules/market/components/OrderHistory.vue index 782f928..ddf4ba0 100644 --- a/src/modules/market/components/OrderHistory.vue +++ b/src/modules/market/components/OrderHistory.vue @@ -137,10 +137,10 @@
-