feat: fix payment

This commit is contained in:
efrilm 2025-08-08 00:12:10 +07:00
parent 2c8b1333d8
commit 3a07d2e7cc

View File

@ -100,10 +100,13 @@ class PaymentSplitBillRequest {
Map<String, dynamic> data = {
'order_id': orderId,
'payment_method_id': paymentMethodId,
'customer_id': customerId,
'type': type,
};
if (customerId.isNotEmpty) {
data['customer_id'] = customerId;
}
if (type == "AMOUNT") {
data['amount'] = amount;
}