Are you receiving the error message “Missing/Invalid PostalCode of payment account” when trying to billReceiver for UPS accounts?

RocketShipIt isn’t sending the proper XML  to UPS. Here is a diff  that will fix it. This code comes from: ./RocketShipIt/Service/Shipment/Ups.php

--- Ups.php-orig	2016-02-17 15:30:31.960436073 -0500
+++ Ups.php-updated	2016-02-17 15:30:50.699410042 -0500
@@ -289,8 +289,11 @@
                 $xml->push('FreightCollect');
                 $xml->push('BillReceiver');
                 $xml->element('AccountNumber', $this->receiverAccount);
+				$xml->push('Address');
+					$xml->element('PostalCode', $this->thirdPartyPostalCode);
+				$xml->pop(); // end Address
                 $xml->pop(); // end BillReceiver
-                    $xml->pop(); // end Prepaid
+	        $xml->pop(); // endFreight Collect
             } else {
                 $xml->push('Prepaid');
                 $xml->push('BillShipper');

Update on Feb 18th, 2016: This was fixed in version 1.4.2.9 of RocketShipIt.

 

Share:

Filed under: Labs, Tips