Skip to content

Commit

Permalink
Updated desc field
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Nov 27, 2024
1 parent 12dc031 commit 0e90ae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Model/PayPaymentCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PayPaymentCreate
/**
* @var float|string|null
*/
private $orderId;
protected $orderId;

/**
* @var Order
Expand Down Expand Up @@ -258,7 +258,7 @@ public function setCurrency($currency)
/**
* @return float|string|null
*/
private function getDescription()
public function getDescription()
{
$prefix = $this->scopeConfig->getValue('payment/paynl/order_description_prefix', 'store');
return !empty($prefix) ? $prefix . $this->orderId : $this->orderId;
Expand Down
4 changes: 3 additions & 1 deletion Model/PayPaymentCreateFastCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public function __construct($methodInstance, $amount, $products, $baseUrl, $quot
$finishUrl = $baseUrl . 'paynl/checkout/finish/?entityid=fc';
$exchangeUrl = $baseUrl . 'paynl/checkout/exchange/';

$this->orderId = $reservedOrderId;

$fastCheckout->setAmount($amount);
$fastCheckout->setCurrency($currency);
$fastCheckout->setFinishURL($finishUrl);
Expand Down Expand Up @@ -78,7 +80,7 @@ public function getData()
$parameters['paymentMethod'] = ['id' => $this->paymentMethodId];

$this->_add($parameters, 'returnUrl', $this->paymentData['returnURL']);
$this->_add($parameters, 'description', '');
$this->_add($parameters, 'description', $this->getDescription());
$this->_add($parameters, 'reference', $this->reference);
$this->_add($parameters, 'exchangeUrl', $this->paymentData['exchangeURL']);

Expand Down

0 comments on commit 0e90ae4

Please sign in to comment.