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
67af60fc
Commit
67af60fc
authored
Jul 22, 2016
by
Rik ter Beek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize cc payment method
parent
7dc5b700
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
Model/AdyenCcConfigProvider.php
Model/AdyenCcConfigProvider.php
+0
-26
view/frontend/web/template/payment/cc-form.html
view/frontend/web/template/payment/cc-form.html
+0
-2
No files found.
Model/AdyenCcConfigProvider.php
View file @
67af60fc
...
...
@@ -103,12 +103,6 @@ class AdyenCcConfigProvider extends CcGenericConfigProvider
$config
[
'payment'
]
[
'adyenCc'
][
'cseEnabled'
]
=
$cseEnabled
;
$config
[
'payment'
][
'adyenCc'
][
'generationTime'
]
=
date
(
"c"
);
$config
[
'payment'
][
'adyenCc'
][
'canCreateBillingAgreement'
]
=
$canCreateBillingAgreement
;
// show logos turned on by default
if
(
$this
->
_adyenHelper
->
showLogos
())
{
$config
[
'payment'
][
'adyenCc'
][
'creditCardPaymentMethodIcon'
]
=
$this
->
_getCreditCardPaymentMethodIcon
();
}
$config
[
'payment'
][
'adyenCc'
][
'icons'
]
=
$this
->
getIcons
();
// has installments by default false
...
...
@@ -129,26 +123,6 @@ class AdyenCcConfigProvider extends CcGenericConfigProvider
return
$config
;
}
/**
* @return array|null
*/
protected
function
_getCreditCardPaymentMethodIcon
()
{
$asset
=
$this
->
_adyenHelper
->
createAsset
(
'Adyen_Payment::images/logos/img_trans.gif'
);
$placeholder
=
$this
->
_adyenHelper
->
findRelativeSourceFilePath
(
$asset
);
$icon
=
null
;
if
(
$placeholder
)
{
list
(
$width
,
$height
)
=
getimagesize
(
$asset
->
getSourceFile
());
$icon
=
[
'url'
=>
$asset
->
getUrl
(),
'width'
=>
$width
,
'height'
=>
$height
];
}
return
$icon
;
}
/**
* Retrieve availables credit card types
*
...
...
view/frontend/web/template/payment/cc-form.html
View file @
67af60fc
...
...
@@ -30,9 +30,7 @@
<label
data-bind=
"attr: {'for': getCode()}"
class=
"label"
>
<!-- ko if: showLogo() -->
<div
data-bind=
"attr: { 'class': 'adyen-sprite ' + getCode() }"
></div>
<!--/ko-->
<span
data-bind=
"text: getTitle()"
></span>
...
...
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