From 395d67eb412a3e5bf1fcbe5ef4d94fbfcee34c3f Mon Sep 17 00:00:00 2001 From: Jacqueline Rinnhofer Date: Mon, 10 Jul 2017 12:24:52 +0200 Subject: [PATCH] #7 Remove magento cvv-validation --- composer.json | 2 +- .../frontend/web/js/view/payment/method-renderer/ccard.js | 2 +- view/frontend/web/template/payment/method-ccard.html | 8 +------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 481d895..ecaeaaf 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "wirecard/magento2-wcs", "description": "Wirecard Checkout Seamless", "type": "magento2-module", - "version": "1.0.3", + "version": "1.0.4", "license": [ "MIT" ], diff --git a/view/frontend/web/js/view/payment/method-renderer/ccard.js b/view/frontend/web/js/view/payment/method-renderer/ccard.js index 4e1114f..4daaeb0 100644 --- a/view/frontend/web/js/view/payment/method-renderer/ccard.js +++ b/view/frontend/web/js/view/payment/method-renderer/ccard.js @@ -173,7 +173,7 @@ define( return $.extend(true, parent, {'additional_data': additionalData}); }, placeWirecardOrder: function () { - if (this.validate() && additionalValidators.validate()) { + if (this.validate()) { var paymentMethod = this.getPaymentMethod(), ccData = {}, failure = function (errors, messageContainer) { diff --git a/view/frontend/web/template/payment/method-ccard.html b/view/frontend/web/template/payment/method-ccard.html index 9bca4b5..a7fbc2b 100644 --- a/view/frontend/web/template/payment/method-ccard.html +++ b/view/frontend/web/template/payment/method-ccard.html @@ -148,15 +148,9 @@ data-bind="attr: {id: getCode() + '_cc_cid', title: $t('Card Verification Code'), placeholder: getCvcPlaceholder(), - 'data-validate': JSON.stringify({'required-number':true, 'validate-card-cvv':'#' + getCode() + '_cc_type'})}, + 'data-validate': JSON.stringify({'required-number':true})}, value: cardverifycode"/>
- - -