Skip to content

Commit

Permalink
Merge pull request #8 from wirecard/Ticket7564
Browse files Browse the repository at this point in the history
#7 Remove magento cvv-validation
  • Loading branch information
jpy authored Jul 10, 2017
2 parents 7759249 + 395d67e commit b13dfc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/payment/method-renderer/ccard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 1 addition & 7 deletions view/frontend/web/template/payment/method-ccard.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
<div class="field-tooltip toggle">
<span class="field-tooltip-action action-cvv"
tabindex="0"
data-toggle="dropdown"
data-bind="attr: {title: $t('What is this?')}, mageInit: {'dropdown':{'activeClass': '_active'}}">
<span><!-- ko i18n: 'What is this?'--><!-- /ko --></span>
</span>
<div class="field-tooltip-content"
data-target="dropdown"
data-bind="html: getCvvImageHtml()"></div>
Expand Down

0 comments on commit b13dfc7

Please sign in to comment.