Skip to content

Instantly share code, notes, and snippets.

@amasses
Created August 15, 2012 08:19
Show Gist options
  • Save amasses/3357575 to your computer and use it in GitHub Desktop.
Save amasses/3357575 to your computer and use it in GitHub Desktop.
Fat Zebra.NET Library Example
// ensure you have added reference to the FatZebra DLL
FatZebra.Gateway.Username = "TEST";
FatZebra.Gateway.Token = "TEST";
FatZebra.Gateway.TestMode = true;
FatZebra.Gateway.SandboxMode = true;
var response = FatZebra.Purchase.Create(12000, "Mark Smith", "5123456789012346", DateTime.new(2013, 5, 30), "123", "INV-123009", "203.123.99.8");
if (response.Successful && response.Result.Successful)
{
// Handle successful response here
} else {
// Retry the transaction some how
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment