updateMerchant method
Future
updateMerchant(
- dynamic id,
- dynamic name,
- dynamic description,
- dynamic supportEmail,
- dynamic category,
- dynamic zip,
- dynamic streetAddress,
- dynamic city,
- dynamic state,
- dynamic country,
update merchant
Implementation
Future updateMerchant(id, name, description, supportEmail, category, zip, streetAddress, city, state, country) async {
var data = {
'merchant_id': id,
'name' : name,
'description' : description,
'support_email' : supportEmail,
'category' : category,
'zip' : zip,
'street_address' : streetAddress,
'city' : city,
'state' : state,
'country' : country,
};
var apiResponse = await post("/merchant/update", data);
return apiResponse;
}