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
aa496725
Commit
aa496725
authored
Jun 30, 2020
by
attilak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove input prefilling in component and add logs
parent
5635b5f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
...d/web/js/view/payment/method-renderer/adyen-hpp-method.js
+12
-6
No files found.
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
View file @
aa496725
...
...
@@ -198,6 +198,9 @@ define(
showPayButton
=
true
;
}
console
.
log
(
paymentMethod
.
type
);
console
.
log
(
paymentMethod
.
details
);
// If the details are empty and the pay button does not needs to be rendered by the component
// simply skip rendering the adyen checkout component
if
(
!
paymentMethod
.
details
&&
!
showPayButton
)
{
...
...
@@ -220,15 +223,15 @@ define(
/*Use the storedPaymentMethod object and the custom onChange function as the configuration object together*/
var
configuration
=
{
showPayButton
:
showPayButton
,
data
:
{
/*
data: {
billingAddress: {
city
:
quote
.
shippingAddress
().
city
,
country
:
quote
.
shippingAddress
().
countryId
,
city: city,
country:
country
,
houseNumberOrName: '',
postalCode
:
quote
.
shippingAddress
().
postc
ode
,
street
:
quote
.
shippingAddress
().
street
.
join
(
"
"
)
postalCode:
postalC
ode,
street:
street
}
},
},
*/
onChange
:
function
(
state
)
{
if
(
!!
state
.
isValid
)
{
result
.
stateData
=
state
.
data
;
...
...
@@ -240,9 +243,12 @@ define(
}
};
console
.
log
(
configuration
);
try
{
self
.
checkoutComponent
.
create
(
result
.
getBrandCode
(),
configuration
).
mount
(
'
#adyen-alternative-payment-container-
'
+
result
.
getBrandCode
());
}
catch
(
err
)
{
console
.
log
(
err
);
// The component does not exist yet
}
};
...
...
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