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:
@@ -309,6 +309,7 @@ export default function ConsultingBooking() {
|
|||||||
status: 'pending',
|
status: 'pending',
|
||||||
payment_status: 'pending',
|
payment_status: 'pending',
|
||||||
payment_provider: 'pakasir',
|
payment_provider: 'pakasir',
|
||||||
|
payment_method: 'qris',
|
||||||
})
|
})
|
||||||
.select()
|
.select()
|
||||||
.single();
|
.single();
|
||||||
|
|||||||
Reference in New Issue
Block a user