createCustomer method

Future createCustomer(
  1. dynamic merchantId,
  2. dynamic email,
  3. dynamic firstName,
  4. dynamic lastName,
  5. dynamic gender,
  6. dynamic phoneNumber,
  7. dynamic meta,
)

createCustomer

Implementation

Future createCustomer(merchantId,email,firstName,lastName,gender,phoneNumber,meta) async {
  var data = {
    'merchant_id': merchantId,
    'email': email,
    'first_name': firstName,
    'last_name': lastName,
    'gender': gender,
    'phone_number': phoneNumber,
    'meta': meta,
  };
  var apiResponse = await post("/merchant/customers/create", data);
  return apiResponse;
}