Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MPowerDirectPay direct_pay = new MPowerDirectPay(apiSetupInstance);
if(direct_pay.creditAccount("MPOWER_CUSTOMER_USERNAME_OR_PHONENO",50)){
System.out.println("Status: "+direct_pay.getStatus());
System.out.println("Descripion: "+direct_pay.getDescription());
System.out.println("Transaction ID: "+direct_pay.getTransactionId());
}else{
System.out.println("Status: "+direct_pay.getStatus());
System.out.println("Response Message: "+direct_pay.getResponseText());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment