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
1658a1e1
Commit
1658a1e1
authored
Oct 19, 2018
by
cyattilakiss
Committed by
GitHub
Oct 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #321 from Adyen/PW-382
PW-382 Set IssuerId in checkout
parents
2dce8d69
c5d0d785
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
...d/web/js/view/payment/method-renderer/adyen-hpp-method.js
+17
-4
view/frontend/web/template/payment/hpp-form.html
view/frontend/web/template/payment/hpp-form.html
+1
-1
No files found.
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
View file @
1658a1e1
...
...
@@ -152,7 +152,6 @@ define(
fullScreenLoader
.
stopLoader
();
}
).
fail
(
function
(
error
)
{
console
.
log
(
JSON
.
stringify
(
error
));
fullScreenLoader
.
stopLoader
();
});
},
...
...
@@ -193,7 +192,19 @@ define(
return
4
;
}
};
if
(
value
.
brandCode
==
"
ideal
"
)
{
result
.
isIssuerListAvailable
=
function
()
{
if
(
value
.
hasOwnProperty
(
"
issuers
"
)
&&
value
.
issuers
.
length
>
0
)
{
return
true
;
}
return
false
;
};
if
(
value
.
hasOwnProperty
(
"
issuers
"
))
{
if
(
value
.
issuers
.
length
==
0
)
{
return
false
;
}
result
.
issuerIds
=
value
.
issuers
;
result
.
issuerId
=
ko
.
observable
(
null
);
}
else
if
(
value
.
isPaymentMethodOpenInvoiceMethod
)
{
...
...
@@ -228,8 +239,10 @@ define(
return
false
;
};
}
return
result
;
});
return
paymentList
;
},
getGenderTypes
:
function
()
{
...
...
@@ -260,7 +273,7 @@ define(
additionalData
.
brand_code
=
self
.
value
;
additionalData
.
df_value
=
dfValue
();
if
(
brandCode
()
==
"
ideal
"
)
{
if
(
self
.
isIssuerListAvailable
()
)
{
additionalData
.
issuer_id
=
this
.
issuerId
();
}
else
if
(
self
.
isPaymentMethodOpenInvoiceMethod
())
{
...
...
@@ -360,4 +373,4 @@ define(
}
});
}
);
);
\ No newline at end of file
view/frontend/web/template/payment/hpp-form.html
View file @
1658a1e1
...
...
@@ -54,7 +54,7 @@
<form
class=
"form"
data-role=
"adyen-hpp-form"
action=
"#"
method=
"post"
data-bind=
"mageInit: { 'validation':[]}, attr: {id: 'payment_form_' + $parent.getCode() + '_' + value}"
>
<fieldset
class=
"fieldset"
data-bind=
'attr: {id: "payment_fieldset_" + $parent.getCode() + "_" + value}'
>
<!-- ko if:
value == 'ideal'
-->
<!-- ko if:
isIssuerListAvailable()
-->
<label
data-bind=
"attr: {'for': 'issuerId'}"
class=
"label"
>
<span>
<!-- ko text: $t('Select Your Bank') --><!-- /ko -->
</span>
</label>
...
...
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