From 1743f95000d3c252ccf4262af2b2432752dcf5fe Mon Sep 17 00:00:00 2001 From: dwindown Date: Fri, 26 Dec 2025 22:49:09 +0700 Subject: [PATCH] Fix: Add missing payment_method to consulting order creation The consulting booking flow was missing payment_method: 'qris' when creating orders. This caused the OrderDetail page to skip rendering the QR code section because it checks order.payment_method === 'qris'. Product orders already had this field, which is why QR codes displayed correctly for them but not for consulting orders. The root cause was in ConsultingBooking.tsx line 303-314 where the order insert was missing the payment_method field that was present in Checkout.tsx. --- src/pages/ConsultingBooking.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/ConsultingBooking.tsx b/src/pages/ConsultingBooking.tsx index ff13e8f..ef0db90 100644 --- a/src/pages/ConsultingBooking.tsx +++ b/src/pages/ConsultingBooking.tsx @@ -309,6 +309,7 @@ export default function ConsultingBooking() { status: 'pending', payment_status: 'pending', payment_provider: 'pakasir', + payment_method: 'qris', }) .select() .single();