chargeMMUGClient method

String chargeMMUGClient (String amount, String email, String phoneNumber, String firstName, String lastName, String ip)

To collect money(charge a client) from a Mobile Money subscriber use the method chargeMMUGClient().

The chargeMMUGClient() has 6 parameters chargeMMUGClient(amount, email, phoneNumber, firstName, lastName, ip)

Where;

amount: is a String specifying the amount of money to collect from a client

email: is a String specifying the amount to collect from a client

phoneNumber: is a String specifying the mobile money phone number of the client

firstName: is a String specifying first name of a client

lastName is a String specifying last name of a client

ip: is a String specifying the IP address of client

Implementation

String chargeMMUGClient(String amount, String email, String phoneNumber,
    String firstName, String lastName, String ip) {
  var payload =
      mmUG(pubKey, amount, email, phoneNumber, firstName, lastName, ip);
  var encryptedData = encrypt(encryptionKey, payload);

  return chargeMMClientReq(pubKey, encryptedData);
}