We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit e56edc5b 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 b12510cc
...@@ -155,8 +155,8 @@ define( ...@@ -155,8 +155,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());
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,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">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,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'})},
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,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">
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,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'
}, },
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,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