Skip to content

Commit

Permalink
Rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
woutse committed Oct 3, 2022
1 parent b95d849 commit 0bae5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Paymentmethod/PaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,12 +577,12 @@ protected function doStartTransaction(Order $order)
$shippingTax = $order->getBaseShippingTaxAmount();
}

$shippingDescription = (!empty($order->getShippingDescription())) ? $order->getShippingDescription() : 'Shipping';
$shippingDescription = $order->getShippingDescription();

if ($shippingCost != 0) {
$arrProducts[] = [
'id' => 'shipping',
'name' => $shippingDescription,
'name' => empty($shippingDescription) ? 'Shipping' : $shippingDescription,
'price' => $shippingCost,
'qty' => 1,
'tax' => $shippingTax,
Expand Down

0 comments on commit 0bae5c4

Please sign in to comment.