Closed TuhiranDevbhuti closed 2 years ago
Hi @TuhiranDevbhuti, how are you setting ShipperNumber? It looks like it contains an object instead of a string.
Hello @okj579 I'm using exactly the same code shipping API https://github.com/gabrielbull/php-ups-api#shipping-class-example
Hello @Rud5G @thijsw @okj579 @MPiccinato @JREAM
I 'm facing a issue in the shipping class "DOMDocument::createElement(): Argument #2 ($value) must be of type string, Ups\Entity\Shipper given" under gabrielbull\ups-api\src\Shipping.php $shipperNode->appendChild($xml->createElement('ShipperNumber', $shipment->getShipper()->getShipperNumber())) ;