createOrder method
Future
createOrder(
- dynamic merchantId,
- dynamic customerId,
- dynamic shippingFee,
- dynamic tax,
- dynamic transactionId,
- dynamic zip,
- dynamic streetAddress,
- dynamic city,
- dynamic state,
- dynamic country,
- dynamic saveAddress,
- dynamic isDefaultAddress,
- dynamic productIds,
- dynamic quantityList,
- dynamic meta,
createOrder
Implementation
Future createOrder(merchantId,customerId,shippingFee,tax,transactionId,zip,streetAddress,city,state,country,saveAddress,isDefaultAddress,productIds,quantityList,meta) async {
var data = {
'merchant_id': merchantId,
'customer_id': customerId,
'shipping_fee': shippingFee,
'tax': tax,
'transaction_id': transactionId,
'zip': zip,
'street_address': streetAddress,
'city': city,
'state': state,
'country': country,
'save_address': saveAddress,
'is_default_address': isDefaultAddress,
'product_ids': productIds,
'quantity_list': quantityList,
'meta': meta,
};
var apiResponse = await post("/customer/orders/checkout", data);
return apiResponse;
}