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
e6319d80
Commit
e6319d80
authored
Jan 08, 2019
by
Alessio Zampatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide CVC on backend if MOTO is enabled
parent
926685db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
view/adminhtml/templates/form/cc.phtml
view/adminhtml/templates/form/cc.phtml
+3
-1
No files found.
view/adminhtml/templates/form/cc.phtml
View file @
e6319d80
...
...
@@ -101,13 +101,15 @@ echo $code; ?>" style="display:none">
var
checkout
=
new
AdyenCheckout
({
locale
:
"
<?php
echo
$block
->
getLocale
();
?>
"
});
var
hideCVC
=
"
<?php
echo
!
$block
->
hasVerification
();
?>
"
;
var
card
=
checkout
.
create
(
'
card
'
,
{
originKey
:
"
<?php
echo
$block
->
getCheckoutOriginKeys
();
?>
"
,
loadingContext
:
"
<?php
echo
$block
->
getCheckoutContextUrl
();
?>
"
,
type
:
'
card
'
,
groupTypes
:
ccTypes
,
hideCVC
:
hideCVC
,
onChange
:
function
(
state
)
{
// When the state is valid update the input fields
if
(
state
.
isValid
)
{
...
...
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