feat: fix payment
This commit is contained in:
parent
2c8b1333d8
commit
3a07d2e7cc
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user