Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Created November 15, 2012 22:19
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/4081782 to your computer and use it in GitHub Desktop.
Save nukturnal/4081782 to your computer and use it in GitHub Desktop.
MPower.NET OPR charge
// Onsite Payment Request Charge requires bother the OPR_Token & Customers Confirmation Token
if (invoice.Charge ("OPR_TOKEN", "CUSTOMER_CONFIRM_TOKEN")) {
Console.WriteLine(invoice.Status);
Console.WriteLine(invoice.ResponseText);
Console.WriteLine(invoice.GetReceiptUrl());
Console.WriteLine(invoice.GetCustomerInfo("name"));
Console.WriteLine(invoice.GetCustomerInfo("email"));
} else {
Console.WriteLine(invoice.Status);
Console.WriteLine(invoice.ResponseText);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment