Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Created November 15, 2012 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nukturnal/4081488 to your computer and use it in GitHub Desktop.
Save nukturnal/4081488 to your computer and use it in GitHub Desktop.
MPower PHP OPR Request
// Onsite Payment Request requires the mpower customer account alias as the parameter
if(invoice->create("MPOWER_CUSTOMER_USERNAME_OR_PHONENO")) {
echo $invoice->getStatus();
echo $invoice->response_text;
echo $invoice->token;
} else {
echo $invoice->getStatus();
echo $invoice->response_text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment