Skip to content

Commit

Permalink
Merge pull request #26 from paynl/feature/PLUG-130
Browse files Browse the repository at this point in the history
Add shipping type
  • Loading branch information
woutse authored Nov 5, 2020
2 parents 4fccbd6 + c8303a4 commit 146b5c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paynlpaymentmethods/paynlpaymentmethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,8 @@ private function _getProductData(Cart $cart)
'name' => $product['name'],
'price' => $product['price_wt'],
'vatPercentage' => $product['rate'],
'qty' => $product['cart_quantity']
'qty' => $product['cart_quantity'],
'type' => 'ARTICLE'
);
}
$shippingCost_wt = $cart->getTotalShippingCost();
Expand All @@ -891,6 +892,7 @@ private function _getProductData(Cart $cart)
'price' => $shippingCost_wt,
'tax' => $shippingCost_wt - $shippingCost,
'qty' => 1,
'type' => 'SHIPPING'
);

return $arrResult;
Expand Down

0 comments on commit 146b5c3

Please sign in to comment.