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.
This commit is contained in:
dwindown
2025-12-26 22:49:09 +07:00
parent a567b683af
commit 1743f95000

View File

@@ -309,6 +309,7 @@ export default function ConsultingBooking() {
status: 'pending',
payment_status: 'pending',
payment_provider: 'pakasir',
payment_method: 'qris',
})
.select()
.single();