Skip to content

Commit

Permalink
Fix PayPal Error: Invalid shipping total (#200)
Browse files Browse the repository at this point in the history
Error message long: Invalid shipping total; it should equal the shipping amount of the selected shipping option.
  • Loading branch information
krausandre committed Jun 28, 2020
1 parent 9a0d3f9 commit c858ef0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -722,7 +722,7 @@ protected function getOrderDetails( \Aimeos\MShop\Order\Item\Base\Iface $orderBa
{
$deliveryPrices = $this->addPrice( $deliveryPrices, $service->getPrice() );

$values['L_SHIPPINGOPTIONAMOUNT' . $lastPos] = number_format( $deliveryCosts, 2, '.', '' );
$values['L_SHIPPINGOPTIONAMOUNT' . $lastPos] = number_format( $service->getPrice()->getCosts(), 2, '.', '' );
$values['L_SHIPPINGOPTIONLABEL' . $lastPos] = $service->getCode();
$values['L_SHIPPINGOPTIONNAME' . $lastPos] = $service->getName();
$values['L_SHIPPINGOPTIONISDEFAULT' . $lastPos] = 'true';
Expand Down

0 comments on commit c858ef0

Please sign in to comment.