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.
@{
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.