diff --git a/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php b/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php index 4c401daa3..fa9348528 100644 --- a/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php +++ b/modules/ppcp-api-client/src/Factory/PurchaseUnitFactory.php @@ -250,7 +250,7 @@ class PurchaseUnitFactory { } $shipping = null; try { - if ( isset( $data->shipping ) ) { + if ( isset( $data->shipping ) && ! empty( (array) $data->shipping ) ) { $shipping = $this->shipping_factory->from_paypal_response( $data->shipping ); } } catch ( RuntimeException $error ) {