Skip to content

Commit

Permalink
Merge pull request #71 from paynl/feature/PLUG-2946
Browse files Browse the repository at this point in the history
PLUG-2946 - Fix view with VERIFY orders on orderoverview
  • Loading branch information
woutse authored Dec 7, 2023
2 parents d65a96c + dcda504 commit c20f8cc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions paynlpaymentmethods/paynlpaymentmethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,17 @@ public function hookDisplayAdminOrder($params)

$orderPayments = $order->getOrderPayments();
$orderPayment = reset($orderPayments);
$status = 'unavailable';
$currency = new Currency($orderPayment->id_currency);
$transactionId = $orderPayment->transaction_id;
$status = 'Check My.pay';

if (!empty($orderPayments)) {
$currency = new Currency($orderPayment->id_currency);
$currency = $currency->iso_code;
$transactionId = $orderPayment->transaction_id;
} else {
$currency = '';
$transactionId = 'Unavailable';
}

$payOrderAmount = 0;
$methodName = 'PAY.';
try {
Expand Down

0 comments on commit c20f8cc

Please sign in to comment.