We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 3acf54e7 authored by Rik ter Beek's avatar Rik ter Beek

#74 Use standard creditcard id values so safari can scan carts on mobile phones

parent 37241e42
...@@ -200,8 +200,8 @@ define( ...@@ -200,8 +200,8 @@ define(
var validate = $(form).validation() && $(form).validation('isValid'); var validate = $(form).validation() && $(form).validation('isValid');
// add extra validation because jqeury validation will not work on non name attributes // add extra validation because jqeury validation will not work on non name attributes
var ccNumber = Boolean($(form + ' #adyen_cc_cc_number').valid()); var ccNumber = Boolean($(form + ' #creditCardNumber').valid());
var owner = Boolean($(form + ' #adyen_cc_cc_owner').valid()); var owner = Boolean($(form + ' #creditCardHolderName').valid());
var expiration = Boolean($(form + ' #adyen_cc_expiration').valid()); var expiration = Boolean($(form + ' #adyen_cc_expiration').valid());
var expiration_yr = Boolean($(form + ' #adyen_cc_expiration_yr').valid()); var expiration_yr = Boolean($(form + ' #adyen_cc_expiration_yr').valid());
var cid = Boolean($(form + ' #adyen_cc_cc_cid').valid()); var cid = Boolean($(form + ' #adyen_cc_cc_cid').valid());
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
</div> </div>
</div> </div>
<div class="field number required"> <div class="field number required">
<label data-bind="attr: {for: getCode() + '_cc_number'}" class="label"> <label data-bind="attr: {for: 'creditCardNumber'}" class="label">
<span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Number')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
data-encrypted-name="number" data-encrypted-name="number"
data-bind="attr: { data-bind="attr: {
autocomplete: off, autocomplete: off,
id: getCode() + '_cc_number', id: 'creditCardNumber',
title: $t('Credit Card Number'), title: $t('Credit Card Number'),
'data-container': getCode() + '-cc-number', 'data-container': getCode() + '-cc-number',
'data-validate': JSON.stringify({'required-number':true, 'validate-card-type':getCcAvailableTypesValues(), 'validate-card-number':'#' + getCode() + '_cc_type', 'validate-cc-type':'#' + getCode() + '_cc_type'})}, 'data-validate': JSON.stringify({'required-number':true, 'validate-card-type':getCcAvailableTypesValues(), 'validate-card-number':'#' + getCode() + '_cc_type', 'validate-cc-type':'#' + getCode() + '_cc_type'})},
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</div> </div>
</div> </div>
<div class="field holdername type required"> <div class="field holdername type required">
<label data-bind="attr: {for: getCode() + '_cc_owner'}" class="label"> <label data-bind="attr: {for: 'creditCardHolderName'}" class="label">
<span><!-- ko text: $t('Credit Card Owner')--><!-- /ko --></span> <span><!-- ko text: $t('Credit Card Owner')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
data-encrypted-name="holderName" data-encrypted-name="holderName"
value="" value=""
data-bind="attr: { data-bind="attr: {
id: getCode() + '_cc_owner', id: 'creditCardHolderName',
title: $t('Credit Card Owner'), title: $t('Credit Card Owner'),
'data-container': getCode() + '-cc-owner' 'data-container': getCode() + '-cc-owner'
}, },
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
</div> </div>
</div> </div>
<div class="field date required" data-bind="attr: {id: getCode() + '_cc_type_exp_div'}"> <div class="field date required" data-bind="attr: {id: getCode() + '_cc_type_exp_div'}">
<label data-bind="attr: {for: getCode() + '_expiration'}" class="label"> <label data-bind="attr: {for: 'cardExpirationMonth'}" class="label">
<span><!-- ko text: $t('Expiration Date')--><!-- /ko --></span> <span><!-- ko text: $t('Expiration Date')--><!-- /ko --></span>
</label> </label>
<div class="control"> <div class="control">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment