Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Last active October 12, 2015 20:18
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/4081769 to your computer and use it in GitHub Desktop.
Save nukturnal/4081769 to your computer and use it in GitHub Desktop.
MPower .NET OPR Request
// Onsite Payment Request requires the mpower customer account alias as the parameter
if (invoice.Create("MPOWER_CUSTOMER_USERNAME_OR_PHONENO")) {
Console.WriteLine (invoice.Token);
Console.WriteLine (invoice.Status);
Console.WriteLine (invoice.ResponseText);
} else {
Console.WriteLine (invoice.ResponseText);
Console.WriteLine (invoice.Status);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment