Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Created November 7, 2012 15:46
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/4032369 to your computer and use it in GitHub Desktop.
Save nukturnal/4032369 to your computer and use it in GitHub Desktop.
MPower .NET Library Checkout Invoice Creation & Redirection
// The code below depicts how to create the checkout invoice on our servers
// and redirect to the checkout page.
if (invoice.Create ()) {
Console.WriteLine (invoice.Status);
Console.WriteLine (invoice.ResponseText);
Console.WriteLine (invoice.GetInvoiceUrl());
} 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