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
5f489de5
Commit
5f489de5
authored
Jun 29, 2017
by
Rik ter Beek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#133 do not allow to change address details on the HPP page for all open invoice methods
parent
dc9aa04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Block/Redirect/Redirect.php
Block/Redirect/Redirect.php
+9
-5
No files found.
Block/Redirect/Redirect.php
View file @
5f489de5
...
...
@@ -221,7 +221,9 @@ class Redirect extends \Magento\Payment\Block\Form
$recurringType
=
trim
(
$this
->
_adyenHelper
->
getAdyenAbstractConfigData
(
'recurring_type'
)
);
$brandCode
=
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
"brand_code"
);
$brandCode
=
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
\Adyen\Payment\Observer\AdyenHppDataAssignObserver
::
BRAND_CODE
);
// Paypal does not allow ONECLICK,RECURRING only RECURRING
if
(
$brandCode
==
"paypal"
&&
$recurringType
==
'ONECLICK,RECURRING'
)
{
...
...
@@ -269,14 +271,16 @@ class Redirect extends \Magento\Payment\Block\Form
$formFields
[
'shopper.dateOfBirthMonth'
]
=
trim
(
$this
->
_getDate
(
$dob
,
'm'
));
$formFields
[
'shopper.dateOfBirthYear'
]
=
trim
(
$this
->
_getDate
(
$dob
,
'Y'
));
}
if
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
\Adyen\Payment\Observer\AdyenHppDataAssignObserver
::
BRAND_CODE
)
==
"klarna"
)
{
// For klarna acceptPrivacyPolicy to skip HPP page
if
(
$brandCode
==
"klarna"
)
{
// // needed for DE and AT
$formFields
[
'klarna.acceptPrivacyPolicy'
]
=
'true'
;
}
// OpenInvoice don't allow to edit billing and delivery items
if
(
$this
->
_adyenHelper
->
isPaymentMethodOpenInvoiceMethod
(
$brandCode
))
{
// don't allow editable shipping/delivery address
$formFields
[
'billingAddressType'
]
=
"1"
;
$formFields
[
'deliveryAddressType'
]
=
"1"
;
...
...
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