Skip to content

Commit

Permalink
Merge pull request #1109 from buckaroo-it/BP-3900-PayPal-Express-tran…
Browse files Browse the repository at this point in the history
…sactions-PUSH-timing-issue

BP-3900 PayPal express transactions push timing issue
  • Loading branch information
SandervdHulst authored Nov 27, 2024
2 parents c73855c + 3073f6e commit bdddf0b
Showing 1 changed file with 11 additions and 11 deletions.
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;
}
}

0 comments on commit bdddf0b

Please sign in to comment.