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
b82772b4
Commit
b82772b4
authored
Dec 04, 2018
by
cyattilakiss
Committed by
GitHub
Dec 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #352 from Adyen/PW-835
PW-835 Move from details.shtml to skipDetails.shtml
parents
1e887533
3d2b4838
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
16 deletions
+33
-16
Block/Redirect/Redirect.php
Block/Redirect/Redirect.php
+20
-16
Helper/Data.php
Helper/Data.php
+13
-0
No files found.
Block/Redirect/Redirect.php
View file @
b82772b4
...
...
@@ -130,14 +130,16 @@ class Redirect extends \Magento\Payment\Block\Form
if
(
$this
->
getPaymentMethodSelectionOnAdyen
())
{
$url
=
'https://test.adyen.com/hpp/select.shtml'
;
}
else
{
if
(
$this
->
_adyenHelper
->
isPaymentMethodOpenInvoiceMethod
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
'brand_code'
)
)
)
{
$url
=
"https://test.adyen.com/hpp/skipDetails.shtml"
;
}
else
{
$url
=
"https://test.adyen.com/hpp/details.shtml"
;
}
if
(
$this
->
_adyenHelper
->
isPaymentMethodOpenInvoiceMethod
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
'brand_code'
)
)
||
$this
->
_adyenHelper
->
isPaymentMethodMolpayMethod
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
'brand_code'
)
)
)
{
$url
=
"https://test.adyen.com/hpp/skipDetails.shtml"
;
}
else
{
$url
=
"https://test.adyen.com/hpp/details.shtml"
;
}
}
}
break
;
...
...
@@ -148,14 +150,16 @@ class Redirect extends \Magento\Payment\Block\Form
if
(
$this
->
getPaymentMethodSelectionOnAdyen
())
{
$url
=
'https://live.adyen.com/hpp/select.shtml'
;
}
else
{
if
(
$this
->
_adyenHelper
->
isPaymentMethodOpenInvoiceMethod
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
'brand_code'
)
)
)
{
$url
=
"https://live.adyen.com/hpp/skipDetails.shtml"
;
}
else
{
$url
=
"https://live.adyen.com/hpp/details.shtml"
;
}
if
(
$this
->
_adyenHelper
->
isPaymentMethodOpenInvoiceMethod
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
'brand_code'
)
)
||
$this
->
_adyenHelper
->
isPaymentMethodMolpayMethod
(
$this
->
_order
->
getPayment
()
->
getAdditionalInformation
(
'brand_code'
)
)
)
{
$url
=
"https://live.adyen.com/hpp/skipDetails.shtml"
;
}
else
{
$url
=
"https://live.adyen.com/hpp/details.shtml"
;
}
}
}
break
;
...
...
Helper/Data.php
View file @
b82772b4
...
...
@@ -928,6 +928,19 @@ class Data extends AbstractHelper
return
false
;
}
/**
* @param $paymentMethod
* @return bool
*/
public
function
isPaymentMethodMolpayMethod
(
$paymentMethod
)
{
if
(
strpos
(
$paymentMethod
,
'molpay_'
)
!==
false
)
{
return
true
;
}
return
false
;
}
public
function
getRatePayId
()
{
return
$this
->
getAdyenHppConfigData
(
"ratepay_id"
);
...
...
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