Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
e56edc5b
Commit
e56edc5b
authored
Sep 08, 2016
by
Rik ter Beek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#74 Use standard creditcard id values so safari can scan carts on mobile phones
parent
b12510cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
view/frontend/web/js/view/payment/method-renderer/adyen-cc-method.js
...nd/web/js/view/payment/method-renderer/adyen-cc-method.js
+2
-2
view/frontend/web/template/payment/cc-form.html
view/frontend/web/template/payment/cc-form.html
+5
-5
No files found.
view/frontend/web/js/view/payment/method-renderer/adyen-cc-method.js
View file @
e56edc5b
...
...
@@ -155,8 +155,8 @@ define(
var
validate
=
$
(
form
).
validation
()
&&
$
(
form
).
validation
(
'
isValid
'
);
// add extra validation because jqeury validation will not work on non name attributes
var
ccNumber
=
Boolean
(
$
(
form
+
'
#
adyen_cc_cc_n
umber
'
).
valid
());
var
owner
=
Boolean
(
$
(
form
+
'
#
adyen_cc_cc_owner
'
).
valid
());
var
ccNumber
=
Boolean
(
$
(
form
+
'
#
creditCardN
umber
'
).
valid
());
var
owner
=
Boolean
(
$
(
form
+
'
#
creditCardHolderName
'
).
valid
());
var
expiration
=
Boolean
(
$
(
form
+
'
#adyen_cc_expiration
'
).
valid
());
var
expiration_yr
=
Boolean
(
$
(
form
+
'
#adyen_cc_expiration_yr
'
).
valid
());
var
cid
=
Boolean
(
$
(
form
+
'
#adyen_cc_cc_cid
'
).
valid
());
...
...
view/frontend/web/template/payment/cc-form.html
View file @
e56edc5b
...
...
@@ -92,7 +92,7 @@
</div>
</div>
<div
class=
"field number required"
>
<label
data-bind=
"attr: {for:
getCode() + '_cc_n
umber'}"
class=
"label"
>
<label
data-bind=
"attr: {for:
'creditCardN
umber'}"
class=
"label"
>
<span>
<!-- ko text: $t('Credit Card Number')--><!-- /ko -->
</span>
</label>
<div
class=
"control"
>
...
...
@@ -100,7 +100,7 @@
data-encrypted-name=
"number"
data-bind=
"attr: {
autocomplete: off,
id:
getCode() + '_cc_n
umber',
id:
'creditCardN
umber',
title: $t('Credit Card 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'})},
...
...
@@ -110,7 +110,7 @@
</div>
</div>
<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>
</label>
<div
class=
"control"
>
...
...
@@ -119,7 +119,7 @@
data-encrypted-name=
"holderName"
value=
""
data-bind=
"attr: {
id:
getCode() + '_cc_owner
',
id:
'creditCardHolderName
',
title: $t('Credit Card Owner'),
'data-container': getCode() + '-cc-owner'
},
...
...
@@ -131,7 +131,7 @@
</div>
</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>
</label>
<div
class=
"control"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment