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
37ac8c0c
Commit
37ac8c0c
authored
Jan 08, 2019
by
attilak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render secure fields with hidden CVC if stored payment is recurring
parent
03f410c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
view/frontend/web/js/view/payment/method-renderer/adyen-oneclick-method.js
.../js/view/payment/method-renderer/adyen-oneclick-method.js
+9
-5
view/frontend/web/template/payment/oneclick-form.html
view/frontend/web/template/payment/oneclick-form.html
+0
-2
No files found.
view/frontend/web/js/view/payment/method-renderer/adyen-oneclick-method.js
View file @
37ac8c0c
...
...
@@ -214,12 +214,16 @@ define(
// this should be fixed in new version of checkout card component
var
hideCVC
=
false
;
if
(
self
.
agreement_data
.
variant
==
"
bcmc
"
)
{
if
(
this
.
hasVerification
())
{
if
(
self
.
agreement_data
.
variant
==
"
bcmc
"
)
{
hideCVC
=
true
;
self
.
placeOrderAllowed
(
true
);
}
else
if
(
self
.
agreement_data
.
variant
==
"
maestro
"
)
{
// for maestro cvc is optional
self
.
placeOrderAllowed
(
true
);
}
}
else
{
hideCVC
=
true
;
self
.
placeOrderAllowed
(
true
);
}
else
if
(
self
.
agreement_data
.
variant
==
"
maestro
"
)
{
// for maestro cvc is optional
self
.
placeOrderAllowed
(
true
);
}
var
oneClickCard
=
checkout
...
...
view/frontend/web/template/payment/oneclick-form.html
View file @
37ac8c0c
...
...
@@ -77,9 +77,7 @@
</div>
</div>
<!-- ko if: hasVerification()-->
<div
afterRender=
"renderSecureCVC()"
data-bind=
"attr: { id: 'cvcContainer-' + value}"
></div>
<!-- /ko -->
<!--/ko-->
<!-- ko if: agreement_data.bank -->
...
...
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