middas / VisaCheckout

A simple ASP.NET MVC library to aide with the use of Visa Checkout

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VisaCheckout

This is a simple way to integrate Visa Checkout into your ASP.NET MVC website. This project includes unit tests and an example website of usage.

Minimal Setup

@{
	VisaCheckout.VisaHelper.Options.OnOptions onOptions = new VisaCheckout.VisaHelper.Options.OnOptions
	{
		PaymentSuccess = "alert(JSON.stringify(payment));",
		PaymentCancel = "alert(JSON.stringify(payment));",
		PaymentError = "alert(JSON.stringify(payment));"
	};

	decimal subtotal = 21.57M;

	VisaCheckout.VisaHelper.Options.VisaOptions minOptions = new VisaCheckout.VisaHelper.Options.VisaOptions("public_key", subtotal, VisaCheckout.VisaHelper.Options.CurrencyCodes.USD, onOptions);
}
@Html.WriteVisaCheckoutLink(minOptions)

If you wish to contribute to the project, please submit your pull request to the development branch. All unit tests must pass and any new functionality must have passing unit tests.

About

A simple ASP.NET MVC library to aide with the use of Visa Checkout

License:MIT License


Languages

Language:C# 75.6%Language:CSS 24.2%Language:JavaScript 0.1%Language:ASP 0.1%