Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 907 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 907 Bytes

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.