We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 9bc250a2 authored by Maikel Koek's avatar Maikel Koek

Made payment URL generation method public

parent c08778dd
...@@ -54,6 +54,7 @@ class PayByMailCommand implements CommandInterface ...@@ -54,6 +54,7 @@ class PayByMailCommand implements CommandInterface
$this->_adyenHelper = $adyenHelper; $this->_adyenHelper = $adyenHelper;
$this->_adyenLogger = $adyenLogger; $this->_adyenLogger = $adyenLogger;
} }
/** /**
* @param array $commandSubject * @param array $commandSubject
* @return $this * @return $this
...@@ -68,7 +69,7 @@ class PayByMailCommand implements CommandInterface ...@@ -68,7 +69,7 @@ class PayByMailCommand implements CommandInterface
$payment->setIsTransactionPending(true); $payment->setIsTransactionPending(true);
// generateUrl // generateUrl
$payment->setAdditionalInformation('payment_url', $this->_generatePaymentUrl($payment)); $payment->setAdditionalInformation('payment_url', $this->generatePaymentUrl($payment));
// update status and state // update status and state
$stateObject->setState(\Magento\Sales\Model\Order::STATE_NEW); $stateObject->setState(\Magento\Sales\Model\Order::STATE_NEW);
...@@ -82,7 +83,7 @@ class PayByMailCommand implements CommandInterface ...@@ -82,7 +83,7 @@ class PayByMailCommand implements CommandInterface
* @param $payment * @param $payment
* @return string * @return string
*/ */
protected function _generatePaymentUrl($payment) public function generatePaymentUrl($payment)
{ {
$url = $this->getFormUrl(); $url = $this->getFormUrl();
$fields = $this->getFormFields($payment); $fields = $this->getFormFields($payment);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment