diff --git a/src/Order.php b/src/Order.php index d316f2c..78585d3 100644 --- a/src/Order.php +++ b/src/Order.php @@ -300,8 +300,6 @@ public function ship($purchaseOrderId, $order) $schema = [ '/orderShipment' => [ - 'namespace' => 'ns3', - 'childNamespace' => 'ns3', ], '/orderShipment/orderLines' => [ 'sendItemsAs' => 'orderLine', @@ -310,10 +308,11 @@ public function ship($purchaseOrderId, $order) 'sendItemsAs' => 'orderLineStatus', ], '@namespaces' => [ - 'ns3' => 'http://walmart.com/mp/v3/orders' + 'ns2' => 'http://walmart.com/mp/v3/orders', + 'ns3' => 'http://walmart.com' ], ]; - + $a2x = new A2X($order, $schema); $xml = $a2x->asXml();