setupMerchant method

Future setupMerchant(
  1. dynamic depositUserId,
  2. dynamic name,
  3. dynamic description,
  4. dynamic supportEmail,
  5. dynamic category,
  6. dynamic zip,
  7. dynamic streetAddress,
  8. dynamic city,
  9. dynamic state,
  10. dynamic country,
)

setup merchant

Implementation

Future setupMerchant(depositUserId, name, description, supportEmail, category, zip, streetAddress, city, state, country) async {
  var data = {
    'deposit_user_id' : depositUserId,
    '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/setup-merchant", data);
  return apiResponse;
}