Created
August 15, 2012 08:19
-
-
Save amasses/3357575 to your computer and use it in GitHub Desktop.
Fat Zebra.NET Library Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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