Skip to content

Commit 2266346

Browse files
author
lestare
committed
MAGETWO-58377: PayPal Payflow Pro always using USD (even if this currency is absent on your store) - for 2.0
1 parent 53209aa commit 2266346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Paypal/Model/Payflow/Transparent.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Paypal\Model\Payflow;
77

8+
use Magento\Framework\DataObject;
89
use Magento\Framework\Exception\LocalizedException;
910
use Magento\Framework\Exception\State\InvalidTransitionException;
1011
use Magento\Payment\Model\InfoInterface;
@@ -14,7 +15,6 @@
1415
use Magento\Paypal\Model\Payflow\Service\Response\Handler\HandlerInterface;
1516
use Magento\Paypal\Model\Payflow\Service\Response\Validator\ResponseValidator;
1617
use Magento\Paypal\Model\Payflowpro;
17-
use Magento\Sales\Model\Order\Payment;
1818

1919
/**
2020
* Payflow Pro payment gateway model
@@ -120,7 +120,7 @@ public function validate()
120120
*/
121121
public function authorize(InfoInterface $payment, $amount)
122122
{
123-
/** @var Payment $payment */
123+
/** @var DataObject $request */
124124
$request = $this->buildBasicRequest();
125125

126126
/** @var \Magento\Sales\Model\Order $order */

0 commit comments

Comments
 (0)