Skip to content

KrishnaNellutla/VisaCheckout

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 75.6%
  • CSS 24.2%
  • Other 0.2%