Skip to content

Instantly share code, notes, and snippets.

@nukturnal
Created November 7, 2012 15:37
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/4032299 to your computer and use it in GitHub Desktop.
Save nukturnal/4032299 to your computer and use it in GitHub Desktop.
MPower .NET Building a Checkout Invoice
// Adding items to your invoice is very basic, the parameters
// expected are name_of_item, quantity, unit_price, total_price and
// optional item description.
invoice.AddItem("13' Apple Retina 500 HDD",1,10.99,10.99);
invoice.AddItem("Case Logic laptop Bag",2,100.50,201,"Optional description");
invoice.AddItem("Philips electric shaver",2,50.50,101.00);
/* You can optionally set a generation invoice description text which can
be used in cases where your invoice does not need an items list or in cases
where you need to include some extra descriptive information to your invoice */
invoice.SetDescription("Optional Invoice description here");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment