Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BP-3900 PayPal express transactions push timing issue #1109

Merged
22 changes: 11 additions & 11 deletions Model/Method/Paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand All @@ -59,9 +69,9 @@ public function getOrderTransactionBuilder($payment)
"Name" => "PayPalOrderId",
"_" => $expressOrderId
];
$payment->setAdditionalInformation('skip_push', 1);
}


/** @noinspection PhpUndefinedMethodInspection */
$transactionBuilder->setOrder($payment->getOrder())
->setServices($services)
Expand Down Expand Up @@ -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;
}
}
Loading