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
83fc873c
Commit
83fc873c
authored
Nov 22, 2019
by
rikt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comments
parent
7dc579a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
...d/web/js/view/payment/method-renderer/adyen-hpp-method.js
+9
-2
No files found.
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
View file @
83fc873c
...
...
@@ -514,13 +514,20 @@ define(
return
paymentList
;
},
/**
* Some payment methods we do not want to render as it requires extra implementation
* or is already implemented in a separate payment method.
* Using a match as we want to prevent to render all Boleto and most of the WeChat types
* @param paymentMethod
* @returns {boolean}
*/
isPaymentMethodSupported
:
function
(
paymentMethod
)
{
if
(
paymentMethod
==
'
wechatpayWeb
'
)
{
return
true
;
}
for
(
var
i
=
0
;
i
<
unsupportedPaymentMethods
.
length
;
i
++
)
{
var
match
=
paymentMethod
.
match
(
unsupportedPaymentMethods
[
i
]);
if
(
match
)
{
if
(
match
)
{
return
false
;
}
}
...
...
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