From 3028b4cafa0d3deb02c101922e120482b1b4753c Mon Sep 17 00:00:00 2001 From: Raziel Date: Fri, 1 May 2020 03:23:11 -0500 Subject: [PATCH] Fix variables for expiration Month and Year Variable names were wrong, causing the SDK to always tokenize the card with dummy values on the expiration date. --- flex-js-sample/Views/Home/Checkout.cshtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flex-js-sample/Views/Home/Checkout.cshtml b/flex-js-sample/Views/Home/Checkout.cshtml index 172a17f..0e8bffa 100644 --- a/flex-js-sample/Views/Home/Checkout.cshtml +++ b/flex-js-sample/Views/Home/Checkout.cshtml @@ -119,8 +119,8 @@ cardInfo: { cardNumber: document.querySelector('#cardNumber').value, cardType: document.querySelector('#cardType').value, - expiryMonth: document.querySelector('#expiryMonth').value, - expiryYear: document.querySelector('#expiryYear').value + cardExpirationMonth: document.querySelector('#expiryMonth').value, + cardExpirationYear: document.querySelector('#expiryYear').value }, encryptionType: 'rsaoaep256' // production: true // without specifying this tokens are created in test env @@ -129,4 +129,4 @@ FLEX.createToken(options, responseHandler); }; - \ No newline at end of file +