Skip to content

Commit ed5eaf2

Browse files
authored
Merge pull request #70 from pagarme/bugfix/PAOPN-281/checkout-with-empty-shipping
Bug fix allowing checkout when shipping is empty
2 parents 3173700 + 3535b05 commit ed5eaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kernel/Services/OrderService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public function extractPaymentOrderFromPlatformOrder(
394394
$order->setCode($platformOrder->getCode());
395395

396396
$shipping = $platformOrder->getShipping();
397-
if ($shipping !== null) {
397+
if (!$shipping && $shipping !== null) {
398398
$order->setShipping($shipping);
399399
}
400400

0 commit comments

Comments
 (0)