Coder Social home page Coder Social logo

.net-library's Introduction

Fat Zebra .NET Library v2.3.0

Support for TLS 1.1 and TLS 1.2

In order to support the updated gateway endpoint configuration for the retirement of TLS 1.0 the following changes may be required for your application:

  • Update to .NET 4.5 or above

Currently there is support for:

  • Purchase with Card Details
  • Purchase with Token
  • Tokenize Card
  • Refund Purchase
  • Subscriptions
  • Customers

Dependencies

  • System.Json
  • Visual Studio test tools for unit testing

Basic Usage

  1. Add a reference to the library.
  2. Configure the Gateway:
Gateway.Username = "TEST";
Gateway.Token = "TEST";
Gateway.SandboxMode = true;
Gateway.TestMode = true;
  1. Purchase, Refund, Tokenize etc
// Create a purchase
var response = Purchase.Create(120, "M Smith", "5123456789012346", DateTime(2012, 05, 31), "123", invoice.record_number, Request.UserHostAddress);

if (response.Successful && response.Result.Successful) 
{
	// Your logic here
}
else
{
	// Do something with the errors
	Response.Write(response.Errors[0]);
}

Notes

Contributors, code reviewers and more are welcome - as I mentioned, this isn't my best code, but it is functional and passes the basic tests. Please feel free to contact me for more info at [email protected]

Eventually once the library is of better quality this will be added to NuGet.

.net-library's People

Contributors

amasses avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.