From c55e461163ecdf3c0ab97f21443439e83994123d Mon Sep 17 00:00:00 2001 From: Bryan Carroll <64871404+BryanCar@users.noreply.github.com> Date: Tue, 25 Aug 2020 13:58:05 -0700 Subject: [PATCH] Updated Demo to correct bug associated with month & year capture --- flex-js-sample/Web.config | 12 +++++++++--- flex-microform-sample/Controllers/HomeController.cs | 4 ++-- flex-microform-sample/Views/Home/Checkout.cshtml | 4 ++-- flex-microform-sample/Web.config | 12 +++++++++--- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/flex-js-sample/Web.config b/flex-js-sample/Web.config index 01e7f90..1a159c0 100644 --- a/flex-js-sample/Web.config +++ b/flex-js-sample/Web.config @@ -11,7 +11,13 @@ - + + + + + + + @@ -23,7 +29,7 @@ - + @@ -66,4 +72,4 @@ - + \ No newline at end of file diff --git a/flex-microform-sample/Controllers/HomeController.cs b/flex-microform-sample/Controllers/HomeController.cs index 3e2f296..0990ffb 100644 --- a/flex-microform-sample/Controllers/HomeController.cs +++ b/flex-microform-sample/Controllers/HomeController.cs @@ -20,10 +20,10 @@ public ActionResult Checkout() /** * Generating Capture Context Request Payload * Defining Encryption Type = RsaOaep - * Defining TargetOrigin = http://localhost:65309 + * Defining TargetOrigin = http://localhost:65309 or http://localhost:8080 * */ - var requestObj = new GeneratePublicKeyRequest("RsaOaep256", "http://localhost:65309"); + var requestObj = new GeneratePublicKeyRequest("RsaOaep256", "http://localhost:65309 http://localhost:8080"); try { diff --git a/flex-microform-sample/Views/Home/Checkout.cshtml b/flex-microform-sample/Views/Home/Checkout.cshtml index c7540be..41c133d 100644 --- a/flex-microform-sample/Views/Home/Checkout.cshtml +++ b/flex-microform-sample/Views/Home/Checkout.cshtml @@ -116,8 +116,8 @@ payButton.addEventListener('click', function () { var options = { - cardExpirationMonth: expMonth.value, - cardExpirationYear: expYear.value + expirationMonth: expMonth.value, + expirationYear: expYear.value }; microform.createToken(options, function (err, token) { diff --git a/flex-microform-sample/Web.config b/flex-microform-sample/Web.config index 01e7f90..1a159c0 100644 --- a/flex-microform-sample/Web.config +++ b/flex-microform-sample/Web.config @@ -11,7 +11,13 @@ - + + + + + + + @@ -23,7 +29,7 @@ - + @@ -66,4 +72,4 @@ - + \ No newline at end of file