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 b59d72f3 authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #257 from ho-nl-fork/order-payment-url

Made payment URL generation method public
parents c08778dd 9bc250a2
......@@ -54,6 +54,7 @@ class PayByMailCommand implements CommandInterface
$this->_adyenHelper = $adyenHelper;
$this->_adyenLogger = $adyenLogger;
}
/**
* @param array $commandSubject
* @return $this
......@@ -68,7 +69,7 @@ class PayByMailCommand implements CommandInterface
$payment->setIsTransactionPending(true);
// generateUrl
$payment->setAdditionalInformation('payment_url', $this->_generatePaymentUrl($payment));
$payment->setAdditionalInformation('payment_url', $this->generatePaymentUrl($payment));
// update status and state
$stateObject->setState(\Magento\Sales\Model\Order::STATE_NEW);
......@@ -82,7 +83,7 @@ class PayByMailCommand implements CommandInterface
* @param $payment
* @return string
*/
protected function _generatePaymentUrl($payment)
public function generatePaymentUrl($payment)
{
$url = $this->getFormUrl();
$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