diff --git a/Model/Method/Paypal.php b/Model/Method/Paypal.php index a6c68240e..907f4c805 100644 --- a/Model/Method/Paypal.php +++ b/Model/Method/Paypal.php @@ -39,6 +39,16 @@ class Paypal extends AbstractMethod */ protected $_code = self::PAYMENT_METHOD_CODE; + /** + * @param \Magento\Sales\Api\Data\OrderPaymentInterface|\Magento\Payment\Model\InfoInterface $payment + * + * @return bool|string + */ + public function getPaymentMethodName($payment) + { + return $this->buckarooPaymentMethodCode; + } + /** * {@inheritdoc} */ @@ -59,9 +69,9 @@ public function getOrderTransactionBuilder($payment) "Name" => "PayPalOrderId", "_" => $expressOrderId ]; + $payment->setAdditionalInformation('skip_push', 1); } - /** @noinspection PhpUndefinedMethodInspection */ $transactionBuilder->setOrder($payment->getOrder()) ->setServices($services) @@ -93,14 +103,4 @@ public function getVoidTransactionBuilder($payment) { return true; } - - /** - * @param \Magento\Sales\Api\Data\OrderPaymentInterface|\Magento\Payment\Model\InfoInterface $payment - * - * @return bool|string - */ - public function getPaymentMethodName($payment) - { - return $this->buckarooPaymentMethodCode; - } }