createCustomer method
Future
createCustomer(
- dynamic merchantId,
- dynamic email,
- dynamic firstName,
- dynamic lastName,
- dynamic gender,
- dynamic phoneNumber,
- 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;
}