dev #1
@ -100,10 +100,13 @@ class PaymentSplitBillRequest {
|
|||||||
Map<String, dynamic> data = {
|
Map<String, dynamic> data = {
|
||||||
'order_id': orderId,
|
'order_id': orderId,
|
||||||
'payment_method_id': paymentMethodId,
|
'payment_method_id': paymentMethodId,
|
||||||
'customer_id': customerId,
|
|
||||||
'type': type,
|
'type': type,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (customerId.isNotEmpty) {
|
||||||
|
data['customer_id'] = customerId;
|
||||||
|
}
|
||||||
|
|
||||||
if (type == "AMOUNT") {
|
if (type == "AMOUNT") {
|
||||||
data['amount'] = amount;
|
data['amount'] = amount;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user