Support » Plugin: USPS Simple Shipping for Woocommerce » No USPS Shipping Method

  • Resolved craftywitchways

    (@marydcards)


    I installed the plug in and retrieved an API User ID from the USPS, validated that the SimpleXML was installed and confirmed my store is US and using USD. Any ideas why the USPS is not displaying in Shipping Methods?

    I did not see any other threads.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Dan

    (@dangoodman)

    It’s hard to tell without the exact details about plugin settings, order, and what USPS returned for the request. Could you gather the debug info:
    1. Enable the WooCommerce shipping debug mode: WooCommerce -> Settings -> Shipping -> Shipping options -> Enable debug mode.
    2. Go to the cart/checkout page with the order you are getting unexpected shipping options for.
    3. Look for the ‘Found X USPS rates’ notice on the top of the page and click ‘Copy’ there.
    4. Paste the copied details here.
    5. Disable the debug mode.

    promact

    (@promact)

    Hi, I am facing the same issue which is mentioned above.
    This is what I am getting in debug mode.

    array (
      'settings' => 
      array (
        'props' => 
        array (
          'endpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll',
          'defaultUserId' => '904SKYWO3126',
          'domestic' => 
          array (
            0 => 'US',
            1 => 'PR',
            2 => 'VI',
            3 => 'MH',
            4 => 'FM',
          ),
          'services' => 
          array (
            'EXPRESS_MAIL' => 
            array (
              'name' => 'Priority Mail Express™',
              'services' => 
              array (
                3 => 'Priority Mail Express™',
                2 => 'Priority Mail Express™, Hold for Pickup',
                23 => 'Priority Mail Express™, Sunday/Holiday',
              ),
            ),
            'PRIORITY_MAIL' => 
            array (
              'name' => 'Priority Mail®',
              'services' => 
              array (
                1 => 'Priority Mail®',
                33 => 'Priority Mail®, Hold For Pickup',
                18 => 'Priority Mail® Keys and IDs',
                47 => 'Priority Mail® Regional Rate Box A',
                48 => 'Priority Mail® Regional Rate Box A, Hold For Pickup',
                49 => 'Priority Mail® Regional Rate Box B',
                50 => 'Priority Mail® Regional Rate Box B, Hold For Pickup',
              ),
            ),
            'FIRST_CLASS' => 
            array (
              'name' => 'First-Class Mail®',
              'services' => 
              array (
                '0A' => 'First-Class Mail® Postcards',
                '0B' => 'First-Class Mail® Letter',
                '0C' => 'First-Class Mail® Large Envelope',
                '0D' => 'First-Class Mail® Parcel',
                12 => 'First-Class™ Postcard Stamped',
                15 => 'First-Class™ Large Postcards',
                19 => 'First-Class™ Keys and IDs',
                61 => 'First-Class™ Package Service',
                53 => 'First-Class™ Package Service, Hold For Pickup',
                78 => 'First-Class Mail® Metered Letter',
              ),
            ),
            'STANDARD_POST' => 
            array (
              'name' => 'USPS Retail Ground™',
              'services' => 
              array (
                4 => 'USPS Retail Ground™',
              ),
            ),
            'MEDIA_MAIL' => 
            array (
              'name' => 'Media Mail',
              'services' => 
              array (
                6 => 'Media Mail',
              ),
            ),
            'LIBRARY_MAIL' => 
            array (
              'name' => 'Library Mail',
              'services' => 
              array (
                7 => 'Library Mail',
              ),
            ),
          ),
          'subservicesEnabled' => 
          array (
            3 => 'yes',
            2 => 'yes',
            23 => 'yes',
            1 => 'yes',
            33 => 'yes',
            18 => 'yes',
            47 => 'yes',
            48 => 'yes',
            49 => 'yes',
            50 => 'yes',
            '0A' => 'yes',
            '0B' => 'yes',
            '0C' => 'yes',
            '0D' => 'yes',
            12 => 'yes',
            15 => 'yes',
            19 => 'yes',
            61 => 'yes',
            53 => 'yes',
            78 => 'yes',
            4 => 'yes',
            6 => 'yes',
            7 => 'yes',
          ),
          'supports' => 
          array (
            0 => 'settings',
          ),
          'id' => 'usps_simple',
          'method_title' => 'USPS Simple',
          'method_description' => 'The <strong>USPS Simple</strong> plugin calculates rates for domestic shipping dynamically using USPS API during checkout.',
          'enabled' => 'yes',
          'title' => 'USPS Simple',
          'rates' => 
          array (
          ),
          'tax_status' => 'taxable',
          'fee' => NULL,
          'minimum_fee' => NULL,
          'instance_id' => 0,
          'instance_form_fields' => 
          array (
          ),
          'instance_settings' => 
          array (
          ),
          'availability' => NULL,
          'countries' => 
          array (
          ),
          'plugin_id' => 'woocommerce_',
          'errors' => 
          array (
          ),
          'data' => 
          array (
          ),
          'serviceDescription' => 'This controls the title which the customer sees during checkout.',
          'sender' => '07103-3726',
          'userId' => '904SKYWO3126',
          'commercialRate' => 'yes',
          'groupByWeight' => 'yes',
          't_express_mail' => 'Priority Mail Express™ (USPS Simple)',
          't_priority_mail' => 'Priority Mail® (USPS Simple)',
          't_first_class' => 'First-Class Mail® (USPS Simple)',
          't_standard_post' => 'USPS Retail Ground™ (USPS Simple)',
          't_media_mail' => 'Media Mail (USPS Simple)',
          't_library_mail' => 'Library Mail (USPS Simple)',
        ),
        'settings' => 
        array (
          'enabled' => 'yes',
          'sender' => '07103-3726',
          'user_id' => '',
          'commercial_rate' => 'yes',
          'group_by_weight' => 'yes',
          'express_mail' => '',
          't_express_mail' => '',
          'express_mail_3' => 'yes',
          'express_mail_2' => 'yes',
          'express_mail_23' => 'yes',
          'priority_mail' => '',
          't_priority_mail' => '',
          'priority_mail_1' => 'yes',
          'priority_mail_33' => 'yes',
          'priority_mail_18' => 'yes',
          'priority_mail_47' => 'yes',
          'priority_mail_48' => 'yes',
          'priority_mail_49' => 'yes',
          'priority_mail_50' => 'yes',
          'first_class' => '',
          't_first_class' => '',
          'first_class_0A' => 'yes',
          'first_class_0B' => 'yes',
          'first_class_0C' => 'yes',
          'first_class_0D' => 'yes',
          'first_class_12' => 'yes',
          'first_class_15' => 'yes',
          'first_class_19' => 'yes',
          'first_class_61' => 'yes',
          'first_class_53' => 'yes',
          'first_class_78' => 'yes',
          'standard_post' => '',
          't_standard_post' => '',
          'standard_post_4' => 'yes',
          'media_mail' => '',
          't_media_mail' => '',
          'media_mail_6' => 'yes',
          'library_mail' => '',
          't_library_mail' => '',
          'library_mail_7' => 'yes',
        ),
      ),
      'package' => 
      array (
        'contents' => 
        array (
          '2178946f1787a676f83fdd283deafcde' => 
          array (
            'key' => '2178946f1787a676f83fdd283deafcde',
            'product_id' => 8950,
            'variation_id' => 9221,
            'variation' => 
            array (
              'attribute_pa_color' => 'black',
            ),
            'quantity' => 1,
            'data_hash' => '8ebe40e554c18ebfc44954a0df960f82',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
              ),
              'total' => 
              array (
              ),
            ),
            'line_subtotal' => 36.0,
            'line_subtotal_tax' => 0,
            'line_total' => 36.0,
            'line_tax' => 0,
            'product' => 
            array (
              'name' => 'Covered - Black',
              'slug' => 'covered-black',
              'price' => '36',
              'regular_price' => '36',
              'sale_price' => '',
              'weight' => '2.5 kg',
              'weight_lbs' => 5.51155,
              'dimensions' => ' x  x  cm',
              'dimensions_in' => '0 x 0 x 0',
            ),
          ),
        ),
        'contents_cost' => 36.0,
        'applied_coupons' => 
        array (
        ),
        'user' => 
        array (
          'ID' => 0,
        ),
        'destination' => 
        array (
          'country' => 'US',
          'state' => 'NJ',
          'postcode' => '07305',
          'city' => 'New Jersey',
          'address' => '72 Thorne st Jersey City',
          'address_1' => '72 Thorne st Jersey City',
          'address_2' => '',
        ),
        'cart_subtotal' => '36.00',
        'rates' => 
        array (
        ),
      ),
      'requests' => 
      array (
        'ONLINE' => 'API=RateV4&XML=
    <RateV4Request USERID="904SKYWO3126">
        <Revision>2</Revision>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Service>ONLINE</Service>
            <ZipOrigination>07103-3726</ZipOrigination>
            <ZipDestination>07305</ZipDestination>
            <Pounds>5</Pounds>
            <Ounces>8.18</Ounces>
            <Container/>
            <Size>REGULAR</Size>
            <Width>0</Width>
            <Length>0</Length>
            <Height>0</Height>
            <Girth>0</Girth>
            <Machinable>true</Machinable>
            <ShipDate>28-Jan-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
        'STANDARD POST' => 'API=RateV4&XML=
    <RateV4Request USERID="904SKYWO3126">
        <Revision>2</Revision>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Service>STANDARD POST</Service>
            <ZipOrigination>07103-3726</ZipOrigination>
            <ZipDestination>07305</ZipDestination>
            <Pounds>5</Pounds>
            <Ounces>8.18</Ounces>
            <Container/>
            <Size>REGULAR</Size>
            <Width>0</Width>
            <Length>0</Length>
            <Height>0</Height>
            <Girth>0</Girth>
            <GroundOnly>true</GroundOnly>
            <Machinable>true</Machinable>
            <ShipDate>28-Jan-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
      ),
      'responses' => 
      array (
        'ONLINE' => 
        array (
          'headers' => 
          Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
             'data' => 
            array (
              'x-backside-transport' => 'OK OK',
              'cache-control' => 'private',
              'content-type' => 'text/xml',
              'server' => 'Microsoft-IIS/10.0',
              'x-aspnet-version' => '4.0.30319',
              'x-powered-by' => 'ASP.NET',
              'date' => 'Wed, 27 Jan 2021 08:15:34 GMT',
              'x-global-transaction-id' => 'e41d61746011212c0bd9317f',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '317',
              'x-frame-options' => 'SAMEORIGIN',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'content-encoding' => 'gzip',
              'content-length' => '250',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Error>
                <Number>-2147219498</Number>
                <Source>RateEngineV4;RateV4.ProcessRequest</Source>
                <Description>Please enter a valid ZIP Code for the sender.  </Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
          'response' => 
          array (
            'code' => 200,
            'message' => 'OK',
          ),
          'cookies' => 
          array (
          ),
          'filename' => NULL,
        ),
        'STANDARD POST' => 
        array (
          'headers' => 
          Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
             'data' => 
            array (
              'x-backside-transport' => 'OK OK',
              'cache-control' => 'private',
              'content-type' => 'text/xml',
              'server' => 'Microsoft-IIS/10.0',
              'x-aspnet-version' => '4.0.30319',
              'x-powered-by' => 'ASP.NET',
              'date' => 'Wed, 27 Jan 2021 08:15:35 GMT',
              'x-global-transaction-id' => 'ce7aa4526011212d4f1fb2fd',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '317',
              'x-frame-options' => 'SAMEORIGIN',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'content-encoding' => 'gzip',
              'content-length' => '250',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Error>
                <Number>-2147219498</Number>
                <Source>RateEngineV4;RateV4.ProcessRequest</Source>
                <Description>Please enter a valid ZIP Code for the sender.  </Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
          'response' => 
          array (
            'code' => 200,
            'message' => 'OK',
          ),
          'cookies' => 
          array (
          ),
          'filename' => NULL,
        ),
      ),
      'unitedResponse' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Error>
                <Number>-2147219498</Number>
                <Source>RateEngineV4;RateV4.ProcessRequest</Source>
                <Description>Please enter a valid ZIP Code for the sender.  </Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
      'shownRates' => 
      array (
      ),
      'eliminatedRates' => 
      array (
      ),
    )
    Plugin Author Dan

    (@dangoodman)

    Hi @promact,

    Thank you for posting the debug details.

    The issue is related to the origin postcode in the plugin settings set to ‘07103-3726’. It doesn’t look like a valid US zip code. What kind of postcode is it?

    Hello Sir, I am also facing the same problem. let me show you the debugging code.

    array (
      'settings' => 
      array (
        'props' => 
        array (
          'endpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll',
          'defaultUserId' => '904SKYWO3126',
          'domestic' => 
          array (
            0 => 'US',
            1 => 'PR',
            2 => 'VI',
            3 => 'MH',
            4 => 'FM',
          ),
          'services' => 
          array (
            'EXPRESS_MAIL' => 
            array (
              'name' => 'Priority Mail Express™',
              'services' => 
              array (
                3 => 'Priority Mail Express™',
                2 => 'Priority Mail Express™, Hold for Pickup',
                23 => 'Priority Mail Express™, Sunday/Holiday',
              ),
            ),
            'PRIORITY_MAIL' => 
            array (
              'name' => 'Priority Mail®',
              'services' => 
              array (
                1 => 'Priority Mail®',
                33 => 'Priority Mail®, Hold For Pickup',
                18 => 'Priority Mail® Keys and IDs',
                47 => 'Priority Mail® Regional Rate Box A',
                48 => 'Priority Mail® Regional Rate Box A, Hold For Pickup',
                49 => 'Priority Mail® Regional Rate Box B',
                50 => 'Priority Mail® Regional Rate Box B, Hold For Pickup',
              ),
            ),
            'FIRST_CLASS' => 
            array (
              'name' => 'First-Class Mail®',
              'services' => 
              array (
                '0A' => 'First-Class Mail® Postcards',
                '0B' => 'First-Class Mail® Letter',
                '0C' => 'First-Class Mail® Large Envelope',
                '0D' => 'First-Class Mail® Parcel',
                12 => 'First-Class™ Postcard Stamped',
                15 => 'First-Class™ Large Postcards',
                19 => 'First-Class™ Keys and IDs',
                61 => 'First-Class™ Package Service',
                53 => 'First-Class™ Package Service, Hold For Pickup',
                78 => 'First-Class Mail® Metered Letter',
              ),
            ),
            'STANDARD_POST' => 
            array (
              'name' => 'USPS Retail Ground™',
              'services' => 
              array (
                4 => 'USPS Retail Ground™',
              ),
            ),
            'MEDIA_MAIL' => 
            array (
              'name' => 'Media Mail',
              'services' => 
              array (
                6 => 'Media Mail',
              ),
            ),
            'LIBRARY_MAIL' => 
            array (
              'name' => 'Library Mail',
              'services' => 
              array (
                7 => 'Library Mail',
              ),
            ),
          ),
          'subservicesEnabled' => 
          array (
            3 => 'yes',
            2 => 'yes',
            23 => 'yes',
            1 => 'yes',
            33 => 'yes',
            18 => 'yes',
            47 => 'yes',
            48 => 'yes',
            49 => 'yes',
            50 => 'yes',
            '0A' => 'yes',
            '0B' => 'yes',
            '0C' => 'yes',
            '0D' => 'yes',
            12 => 'yes',
            15 => 'yes',
            19 => 'yes',
            61 => 'yes',
            53 => 'yes',
            78 => 'yes',
            4 => 'yes',
            6 => 'yes',
            7 => 'yes',
          ),
          'supports' => 
          array (
            0 => 'settings',
          ),
          'id' => 'usps_simple',
          'method_title' => 'USPS Simple',
          'method_description' => 'The <strong>USPS Simple</strong> plugin calculates rates for domestic shipping dynamically using USPS API during checkout.',
          'enabled' => 'yes',
          'title' => 'USPS Simple',
          'rates' => 
          array (
          ),
          'tax_status' => 'taxable',
          'fee' => NULL,
          'minimum_fee' => NULL,
          'instance_id' => 0,
          'instance_form_fields' => 
          array (
          ),
          'instance_settings' => 
          array (
          ),
          'availability' => NULL,
          'countries' => 
          array (
          ),
          'plugin_id' => 'woocommerce_',
          'errors' => 
          array (
          ),
          'data' => 
          array (
          ),
          'serviceDescription' => 'This controls the title which the customer sees during checkout.',
          'sender' => '32503',
          'userId' => '904SKYWO3126',
          'commercialRate' => 'yes',
          'groupByWeight' => 'yes',
          't_express_mail' => 'Priority Mail Express™',
          't_priority_mail' => 'Priority Mail®',
          't_first_class' => 'First-Class Mail®',
          't_standard_post' => 'USPS Retail Ground™',
          't_media_mail' => 'Media Mail',
          't_library_mail' => 'Library Mail',
        ),
        'settings' => 
        array (
          'enabled' => 'yes',
          'sender' => '32503',
          'user_id' => '904SKYWO3126',
          'commercial_rate' => 'yes',
          'group_by_weight' => 'yes',
          'express_mail' => '',
          't_express_mail' => 'Priority Mail Express™',
          'express_mail_3' => 'yes',
          'express_mail_2' => 'yes',
          'express_mail_23' => 'yes',
          'priority_mail' => '',
          't_priority_mail' => 'Priority Mail®',
          'priority_mail_1' => 'yes',
          'priority_mail_33' => 'yes',
          'priority_mail_18' => 'yes',
          'priority_mail_47' => 'yes',
          'priority_mail_48' => 'yes',
          'priority_mail_49' => 'yes',
          'priority_mail_50' => 'yes',
          'first_class' => '',
          't_first_class' => 'First-Class Mail®',
          'first_class_0A' => 'yes',
          'first_class_0B' => 'yes',
          'first_class_0C' => 'yes',
          'first_class_0D' => 'yes',
          'first_class_12' => 'yes',
          'first_class_15' => 'yes',
          'first_class_19' => 'yes',
          'first_class_61' => 'yes',
          'first_class_53' => 'yes',
          'first_class_78' => 'yes',
          'standard_post' => '',
          't_standard_post' => 'USPS Retail Ground™',
          'standard_post_4' => 'yes',
          'media_mail' => '',
          't_media_mail' => 'Media Mail',
          'media_mail_6' => 'yes',
          'library_mail' => '',
          't_library_mail' => 'Library Mail',
          'library_mail_7' => 'yes',
        ),
      ),
      'package' => 
      array (
        'contents' => 
        array (
          '42e77b63637ab381e8be5f8318cc28a2' => 
          array (
            'key' => '42e77b63637ab381e8be5f8318cc28a2',
            'product_id' => 628,
            'variation_id' => 0,
            'variation' => 
            array (
            ),
            'quantity' => 3,
            'data_hash' => 'b5c1d5ca8bae6d4896cf1807cdf763f0',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
              ),
              'total' => 
              array (
              ),
            ),
            'line_subtotal' => 18.0,
            'line_subtotal_tax' => 0,
            'line_total' => 18.0,
            'line_tax' => 0,
            'product' => 
            array (
              'name' => 'Royal Grabba Crush',
              'slug' => 'royal-grabba-crush',
              'price' => '6.00',
              'regular_price' => '6.00',
              'sale_price' => '',
              'weight' => ' kg',
              'weight_lbs' => 0.0,
              'dimensions' => ' x  x  cm',
              'dimensions_in' => '0 x 0 x 0',
            ),
          ),
        ),
        'contents_cost' => 18.0,
        'applied_coupons' => 
        array (
        ),
        'user' => 
        array (
          'ID' => 1,
        ),
        'destination' => 
        array (
          'country' => 'UM',
          'state' => 'CA',
          'postcode' => '32503',
          'city' => 'dhaka',
          'address' => 'mohammadpur',
          'address_1' => 'mohammadpur',
          'address_2' => '2/2-B',
        ),
        'cart_subtotal' => '18.00',
        'rates' => 
        array (
        ),
      ),
      'requests' => NULL,
      'responses' => NULL,
      'unitedResponse' => NULL,
      'shownRates' => 
      array (
      ),
      'eliminatedRates' => 
      array (
      ),
    )
    Plugin Author Dan

    (@dangoodman)

    Hello @showrovsms,

    'destination' => 
        array (
          'country' => 'UM',
          'state' => 'CA',
          'postcode' => '32503',
          'city' => 'dhaka',
          'address' => 'mohammadpur',
          'address_1' => 'mohammadpur',
          'address_2' => '2/2-B',
        ),

    The selected country’s code is UM, which corresponds to the United States Minor Outlying Islands. Not sure if the outlying islands are considered for USPS domestic shipping.

    The code of state selected is CA, California.

    The zip code is 32503, Florida.

    So, the address is incorrect. It seems that is the issue.

    • This reply was modified 6 months, 2 weeks ago by Dan.
    mybestpaintingsource

    (@mybestpaintingsource)

    Hi, I have the same problem. My log is here:

    array (
      'settings' => 
      array (
        'props' => 
        array (
          'endpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll',
          'defaultUserId' => '904SKYWO3126',
          'domestic' => 
          array (
            0 => 'US',
            1 => 'PR',
            2 => 'VI',
            3 => 'MH',
            4 => 'FM',
          ),
          'services' => 
          array (
            'EXPRESS_MAIL' => 
            array (
              'name' => 'Priority Mail Express™',
              'services' => 
              array (
                3 => 'Priority Mail Express™',
                2 => 'Priority Mail Express™, Hold for Pickup',
                23 => 'Priority Mail Express™, Sunday/Holiday',
              ),
            ),
            'PRIORITY_MAIL' => 
            array (
              'name' => 'Priority Mail®',
              'services' => 
              array (
                1 => 'Priority Mail®',
                33 => 'Priority Mail®, Hold For Pickup',
                18 => 'Priority Mail® Keys and IDs',
                47 => 'Priority Mail® Regional Rate Box A',
                48 => 'Priority Mail® Regional Rate Box A, Hold For Pickup',
                49 => 'Priority Mail® Regional Rate Box B',
                50 => 'Priority Mail® Regional Rate Box B, Hold For Pickup',
              ),
            ),
            'FIRST_CLASS' => 
            array (
              'name' => 'First-Class Mail®',
              'services' => 
              array (
                '0A' => 'First-Class Mail® Postcards',
                '0B' => 'First-Class Mail® Letter',
                '0C' => 'First-Class Mail® Large Envelope',
                '0D' => 'First-Class Mail® Parcel',
                12 => 'First-Class™ Postcard Stamped',
                15 => 'First-Class™ Large Postcards',
                19 => 'First-Class™ Keys and IDs',
                61 => 'First-Class™ Package Service',
                53 => 'First-Class™ Package Service, Hold For Pickup',
                78 => 'First-Class Mail® Metered Letter',
              ),
            ),
            'STANDARD_POST' => 
            array (
              'name' => 'USPS Retail Ground™',
              'services' => 
              array (
                4 => 'USPS Retail Ground™',
              ),
            ),
            'MEDIA_MAIL' => 
            array (
              'name' => 'Media Mail',
              'services' => 
              array (
                6 => 'Media Mail',
              ),
            ),
            'LIBRARY_MAIL' => 
            array (
              'name' => 'Library Mail',
              'services' => 
              array (
                7 => 'Library Mail',
              ),
            ),
          ),
          'subservicesEnabled' => 
          array (
            3 => 'yes',
            2 => 'yes',
            23 => 'yes',
            1 => 'yes',
            33 => 'yes',
            18 => 'no',
            47 => 'yes',
            48 => 'yes',
            49 => 'yes',
            50 => 'yes',
            '0A' => 'no',
            '0B' => 'no',
            '0C' => 'no',
            '0D' => 'yes',
            12 => 'no',
            15 => 'no',
            19 => 'no',
            61 => 'yes',
            53 => 'yes',
            78 => 'no',
            4 => 'yes',
            6 => 'no',
            7 => 'no',
          ),
          'supports' => 
          array (
            0 => 'settings',
          ),
          'id' => 'usps_simple',
          'method_title' => 'USPS Simple',
          'method_description' => 'The <strong>USPS Simple</strong> plugin calculates rates for domestic shipping dynamically using USPS API during checkout.',
          'enabled' => 'yes',
          'title' => 'USPS Simple',
          'rates' => 
          array (
          ),
          'tax_status' => 'taxable',
          'fee' => NULL,
          'minimum_fee' => NULL,
          'instance_id' => 0,
          'instance_form_fields' => 
          array (
          ),
          'instance_settings' => 
          array (
          ),
          'availability' => NULL,
          'countries' => 
          array (
          ),
          'plugin_id' => 'woocommerce_',
          'errors' => 
          array (
          ),
          'data' => 
          array (
          ),
          'serviceDescription' => 'This controls the title which the customer sees during checkout.',
          'sender' => '85043',
          'userId' => 'mybestpaintingsource',
          'commercialRate' => 'yes',
          'groupByWeight' => 'yes',
          't_express_mail' => 'USPS Priority Mail Express',
          't_priority_mail' => 'USPS Priority Mail',
          't_first_class' => 'USPS First-Class Mail',
          't_standard_post' => 'USPS Retail Ground',
          't_media_mail' => 'Media Mail (USPS Simple)',
          't_library_mail' => 'Library Mail (USPS Simple)',
        ),
        'settings' => 
        array (
          'enabled' => 'yes',
          'sender' => '85043',
          'user_id' => 'mybestpaintingsource',
          'commercial_rate' => 'yes',
          'group_by_weight' => 'yes',
          'express_mail' => '',
          't_express_mail' => 'USPS Priority Mail Express',
          'express_mail_3' => 'yes',
          'express_mail_2' => 'yes',
          'express_mail_23' => 'yes',
          'priority_mail' => '',
          't_priority_mail' => 'USPS Priority Mail',
          'priority_mail_1' => 'yes',
          'priority_mail_33' => 'yes',
          'priority_mail_18' => 'no',
          'priority_mail_47' => 'yes',
          'priority_mail_48' => 'yes',
          'priority_mail_49' => 'yes',
          'priority_mail_50' => 'yes',
          'first_class' => '',
          't_first_class' => 'USPS First-Class Mail',
          'first_class_0A' => 'no',
          'first_class_0B' => 'no',
          'first_class_0C' => 'no',
          'first_class_0D' => 'yes',
          'first_class_12' => 'no',
          'first_class_15' => 'no',
          'first_class_19' => 'no',
          'first_class_61' => 'yes',
          'first_class_53' => 'yes',
          'first_class_78' => 'no',
          'standard_post' => '',
          't_standard_post' => 'USPS Retail Ground',
          'standard_post_4' => 'yes',
          'media_mail' => '',
          't_media_mail' => '',
          'media_mail_6' => 'no',
          'library_mail' => '',
          't_library_mail' => '',
          'library_mail_7' => 'no',
        ),
      ),
      'package' => 
      array (
        'contents' => 
        array (
          'b8428d3df2b2a11433a9b1067bf2f994' => 
          array (
            'key' => 'b8428d3df2b2a11433a9b1067bf2f994',
            'product_id' => 343,
            'variation_id' => 6983,
            'variation' => 
            array (
              'attribute_pa_box-size' => '10-lbs',
            ),
            'quantity' => 1,
            'data_hash' => '944889abbc810fcb89c5f36acb3e6392',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
              ),
              'total' => 
              array (
              ),
            ),
            'line_subtotal' => 9.5,
            'line_subtotal_tax' => 0,
            'line_total' => 9.5,
            'line_tax' => 0,
            'product' => 
            array (
              'name' => 'White Sweatshirts Wipers - 10 lbs',
              'slug' => 'white-sweatshirts-wipers-10-lbs',
              'price' => '9.5',
              'regular_price' => '9.5',
              'sale_price' => '',
              'weight' => '10 lbs',
              'weight_lbs' => 10.0,
              'dimensions' => ' x  x  in',
              'dimensions_in' => ' x  x ',
            ),
          ),
        ),
        'contents_cost' => 9.5,
        'applied_coupons' => 
        array (
        ),
        'user' => 
        array (
          'ID' => 1,
        ),
        'destination' => 
        array (
          'country' => 'US',
          'state' => 'TX',
          'postcode' => '77008',
          'city' => 'Houston',
          'address' => '5675 jguh ghjgjghj',
          'address_1' => '5675 jguh ghjgjghj',
          'address_2' => '',
        ),
        'cart_subtotal' => '9.50',
        'rates' => 
        array (
        ),
      ),
      'requests' => 
      array (
        'ONLINE' => 'API=RateV4&XML=
    <RateV4Request USERID="mybestpaintingsource">
        <Revision>2</Revision>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Service>ONLINE</Service>
            <ZipOrigination>85043</ZipOrigination>
            <ZipDestination>77008</ZipDestination>
            <Pounds>10</Pounds>
            <Ounces>0.00</Ounces>
            <Container/>
            <Size>REGULAR</Size>
            <Width>0</Width>
            <Length>0</Length>
            <Height>0</Height>
            <Girth>0</Girth>
            <Machinable>true</Machinable>
            <ShipDate>18-Mar-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
        'STANDARD POST' => 'API=RateV4&XML=
    <RateV4Request USERID="mybestpaintingsource">
        <Revision>2</Revision>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Service>STANDARD POST</Service>
            <ZipOrigination>85043</ZipOrigination>
            <ZipDestination>77008</ZipDestination>
            <Pounds>10</Pounds>
            <Ounces>0.00</Ounces>
            <Container/>
            <Size>REGULAR</Size>
            <Width>0</Width>
            <Length>0</Length>
            <Height>0</Height>
            <Girth>0</Girth>
            <GroundOnly>true</GroundOnly>
            <Machinable>true</Machinable>
            <ShipDate>18-Mar-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
      ),
      'responses' => 
      array (
        'ONLINE' => 
        array (
          'headers' => 
          Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
             'data' => 
            array (
              'x-backside-transport' => 'OK OK',
              'host' => '127.0.0.1:2048',
              'user-agent' => 'WordPress/5.6.2; https://mybestpaintingsource.com',
              'referer' => 'https://secure.shippingapis.com/ShippingAPI.dll',
              'cneonction' => 'close',
              'content-type' => 'text/xml',
              'client-ip' => '208.109.30.225',
              'via' => '1.1 ApplicationError_XML_Firewall',
              'x-client-ip' => '56.0.33.9,56.0.33.9',
              'x-global-transaction-id' => 'ce7aa452605251135661f17f',
              'ns-client-ip' => '208.109.30.225',
              'x-archived-client-ip' => '56.0.33.9',
              'date' => 'Wed, 17 Mar 2021 18:57:23 GMT',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '170',
              'x-frame-options' => 'SAMEORIGIN',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'content-encoding' => 'gzip',
              'content-length' => '158',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <Error>
        <Number>80040B1A</Number>
        <Description>Username exceeds maximum length.</Description>
        <Source>USPSCOM::DoAuth</Source>
    </Error>
    ',
          'response' => 
          array (
            'code' => 200,
            'message' => 'OK',
          ),
          'cookies' => 
          array (
          ),
          'filename' => NULL,
        ),
        'STANDARD POST' => 
        array (
          'headers' => 
          Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
             'data' => 
            array (
              'x-backside-transport' => 'OK OK',
              'host' => '127.0.0.1:2048',
              'user-agent' => 'WordPress/5.6.2; https://mybestpaintingsource.com',
              'referer' => 'https://secure.shippingapis.com/ShippingAPI.dll',
              'cneonction' => 'close',
              'content-type' => 'text/xml',
              'client-ip' => '208.109.30.225',
              'via' => '1.1 ApplicationError_XML_Firewall',
              'x-client-ip' => '56.0.33.9,56.0.33.9',
              'x-global-transaction-id' => 'ce7aa45260525114c8813d91',
              'ns-client-ip' => '208.109.30.225',
              'x-archived-client-ip' => '56.0.33.9',
              'date' => 'Wed, 17 Mar 2021 18:57:24 GMT',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '170',
              'x-frame-options' => 'SAMEORIGIN',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'content-encoding' => 'gzip',
              'content-length' => '158',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <Error>
        <Number>80040B1A</Number>
        <Description>Username exceeds maximum length.</Description>
        <Source>USPSCOM::DoAuth</Source>
    </Error>
    ',
          'response' => 
          array (
            'code' => 200,
            'message' => 'OK',
          ),
          'cookies' => 
          array (
          ),
          'filename' => NULL,
        ),
      ),
      'unitedResponse' => '<?xml version="1.0" encoding="UTF-8"?>
    <Error>
        <Number>80040B1A</Number>
        <Description>Username exceeds maximum length.</Description>
        <Source>USPSCOM::DoAuth</Source>
    </Error>
    ',
      'shownRates' => 
      array (
      ),
      'eliminatedRates' => 
      array (
      ),
    )
    Plugin Author Dan

    (@dangoodman)

    @mybestpaintingsource The issue is that mybestpaintingsource is not a valid USPS API ID. You would have to register another ID for USPS API. Or, just leave the User ID field empty.

    mybestpaintingsource

    (@mybestpaintingsource)

    Thank you Dan, that solves it! And thanks for the plugin!

    Plugin Author Dan

    (@dangoodman)

    @mybestpaintingsource Great! Thank you for the update.

    Same issue here:

    array (
      'settings' => 
      array (
        'props' => 
        array (
          'endpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll',
          'defaultUserId' => '904SKYWO3126',
          'domestic' => 
          array (
            0 => 'US',
            1 => 'PR',
            2 => 'VI',
            3 => 'MH',
            4 => 'FM',
          ),
          'services' => 
          array (
            'EXPRESS_MAIL' => 
            array (
              'name' => 'Priority Mail Express™',
              'services' => 
              array (
                3 => 'Priority Mail Express™',
                2 => 'Priority Mail Express™, Hold for Pickup',
                23 => 'Priority Mail Express™, Sunday/Holiday',
              ),
            ),
            'PRIORITY_MAIL' => 
            array (
              'name' => 'Priority Mail®',
              'services' => 
              array (
                1 => 'Priority Mail®',
                33 => 'Priority Mail®, Hold For Pickup',
                18 => 'Priority Mail® Keys and IDs',
                47 => 'Priority Mail® Regional Rate Box A',
                48 => 'Priority Mail® Regional Rate Box A, Hold For Pickup',
                49 => 'Priority Mail® Regional Rate Box B',
                50 => 'Priority Mail® Regional Rate Box B, Hold For Pickup',
              ),
            ),
            'FIRST_CLASS' => 
            array (
              'name' => 'First-Class Mail®',
              'services' => 
              array (
                '0A' => 'First-Class Mail® Postcards',
                '0B' => 'First-Class Mail® Letter',
                '0C' => 'First-Class Mail® Large Envelope',
                '0D' => 'First-Class Mail® Parcel',
                12 => 'First-Class™ Postcard Stamped',
                15 => 'First-Class™ Large Postcards',
                19 => 'First-Class™ Keys and IDs',
                61 => 'First-Class™ Package Service',
                53 => 'First-Class™ Package Service, Hold For Pickup',
                78 => 'First-Class Mail® Metered Letter',
              ),
            ),
            'STANDARD_POST' => 
            array (
              'name' => 'USPS Retail Ground™',
              'services' => 
              array (
                4 => 'USPS Retail Ground™',
              ),
            ),
            'MEDIA_MAIL' => 
            array (
              'name' => 'Media Mail',
              'services' => 
              array (
                6 => 'Media Mail',
              ),
            ),
            'LIBRARY_MAIL' => 
            array (
              'name' => 'Library Mail',
              'services' => 
              array (
                7 => 'Library Mail',
              ),
            ),
          ),
          'subservicesEnabled' => 
          array (
            3 => 'yes',
            2 => 'no',
            23 => 'no',
            1 => 'yes',
            33 => 'no',
            18 => 'no',
            47 => 'no',
            48 => 'no',
            49 => 'no',
            50 => 'no',
            '0A' => 'no',
            '0B' => 'no',
            '0C' => 'no',
            '0D' => 'yes',
            12 => 'no',
            15 => 'no',
            19 => 'no',
            61 => 'no',
            53 => 'no',
            78 => 'no',
            4 => 'yes',
            6 => 'no',
            7 => 'no',
          ),
          'supports' => 
          array (
            0 => 'settings',
          ),
          'id' => 'usps_simple',
          'method_title' => 'USPS Simple',
          'method_description' => 'The <strong>USPS Simple</strong> plugin calculates rates for domestic shipping dynamically using USPS API during checkout.',
          'enabled' => 'yes',
          'title' => 'USPS Simple',
          'rates' => 
          array (
          ),
          'tax_status' => 'taxable',
          'fee' => NULL,
          'minimum_fee' => NULL,
          'instance_id' => 0,
          'instance_form_fields' => 
          array (
          ),
          'instance_settings' => 
          array (
          ),
          'availability' => NULL,
          'countries' => 
          array (
          ),
          'plugin_id' => 'woocommerce_',
          'errors' => 
          array (
          ),
          'data' => 
          array (
          ),
          'serviceDescription' => 'This controls the title which the customer sees during checkout.',
          'sender' => '06443',
          'userId' => '904SKYWO3126',
          'commercialRate' => 'no',
          'groupByWeight' => 'no',
          't_express_mail' => 'Priority Mail Express™',
          't_priority_mail' => 'Priority Mail®',
          't_first_class' => 'First-Class Mail® Parcel',
          't_standard_post' => 'USPS Retail Ground™',
          't_media_mail' => 'Media Mail (USPS Simple)',
          't_library_mail' => 'Library Mail (USPS Simple)',
        ),
        'settings' => 
        array (
          'enabled' => 'yes',
          'sender' => '06443',
          'user_id' => '',
          'commercial_rate' => 'no',
          'group_by_weight' => 'no',
          'express_mail' => '',
          't_express_mail' => 'Priority Mail Express™',
          'express_mail_3' => 'yes',
          'express_mail_2' => 'no',
          'express_mail_23' => 'no',
          'priority_mail' => '',
          't_priority_mail' => 'Priority Mail®',
          'priority_mail_1' => 'yes',
          'priority_mail_33' => 'no',
          'priority_mail_18' => 'no',
          'priority_mail_47' => 'no',
          'priority_mail_48' => 'no',
          'priority_mail_49' => 'no',
          'priority_mail_50' => 'no',
          'first_class' => '',
          't_first_class' => 'First-Class Mail® Parcel',
          'first_class_0A' => 'no',
          'first_class_0B' => 'no',
          'first_class_0C' => 'no',
          'first_class_0D' => 'yes',
          'first_class_12' => 'no',
          'first_class_15' => 'no',
          'first_class_19' => 'no',
          'first_class_61' => 'no',
          'first_class_53' => 'no',
          'first_class_78' => 'no',
          'standard_post' => '',
          't_standard_post' => 'USPS Retail Ground™',
          'standard_post_4' => 'yes',
          'media_mail' => '',
          't_media_mail' => '',
          'media_mail_6' => 'no',
          'library_mail' => '',
          't_library_mail' => '',
          'library_mail_7' => 'no',
        ),
      ),
      'package' => 
      array (
        'contents' => 
        array (
          '7f39f8317fbdb1988ef4c628eba02591' => 
          array (
            'key' => '7f39f8317fbdb1988ef4c628eba02591',
            'product_id' => 61,
            'variation_id' => 0,
            'variation' => 
            array (
            ),
            'quantity' => 2,
            'data_hash' => 'b5c1d5ca8bae6d4896cf1807cdf763f0',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
              ),
              'total' => 
              array (
              ),
            ),
            'line_subtotal' => 20.0,
            'line_subtotal_tax' => 0,
            'line_total' => 20.0,
            'line_tax' => 0,
            'product' => 
            array (
              'name' => 'The High Mountain Court',
              'slug' => 'the-high-mountain-court',
              'price' => '10',
              'regular_price' => '10',
              'sale_price' => '',
              'weight' => '.5 kg',
              'weight_lbs' => 1.1023099999999999010213969086180441081523895263671875,
              'dimensions' => '5 x 3 x 1 cm',
              'dimensions_in' => '1.9685 x 1.1811 x 0.3937',
            ),
          ),
        ),
        'contents_cost' => 20.0,
        'applied_coupons' => 
        array (
        ),
        'user' => 
        array (
          'ID' => 1,
        ),
        'destination' => 
        array (
          'country' => 'US',
          'state' => 'CT',
          'postcode' => '00948',
          'city' => 'Madison',
          'address' => '',
          'address_1' => '',
          'address_2' => '',
        ),
        'cart_subtotal' => '20',
        'rates' => 
        array (
        ),
      ),
      'requests' => 
      array (
        'ONLINE' => 'API=RateV4&XML=
    <RateV4Request USERID="904SKYWO3126">
        <Revision>2</Revision>
        <Package ID="7f39f8317fbdb1988ef4c628eba02591:2:1.9685:1.1811:0.3937:1.10231">
            <Service>ONLINE</Service>
            <ZipOrigination>06443</ZipOrigination>
            <ZipDestination>00948</ZipDestination>
            <Pounds>1</Pounds>
            <Ounces>1.64</Ounces>
            <Container/>
            <Size>REGULAR</Size>
            <Width>1.1811</Width>
            <Length>1.9685</Length>
            <Height>0.3937</Height>
            <Girth>3</Girth>
            <Machinable>true</Machinable>
            <ShipDate>19-Jun-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
        'STANDARD POST' => 'API=RateV4&XML=
    <RateV4Request USERID="904SKYWO3126">
        <Revision>2</Revision>
        <Package ID="7f39f8317fbdb1988ef4c628eba02591:2:1.9685:1.1811:0.3937:1.10231">
            <Service>STANDARD POST</Service>
            <ZipOrigination>06443</ZipOrigination>
            <ZipDestination>00948</ZipDestination>
            <Pounds>1</Pounds>
            <Ounces>1.64</Ounces>
            <Container/>
            <Size>REGULAR</Size>
            <Width>1.1811</Width>
            <Length>1.9685</Length>
            <Height>0.3937</Height>
            <Girth>3</Girth>
            <GroundOnly>true</GroundOnly>
            <Machinable>true</Machinable>
            <ShipDate>19-Jun-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
      ),
      'responses' => 
      array (
        'ONLINE' => 
        array (
          'headers' => 
          Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
             'data' => 
            array (
              'x-backside-transport' => 'OK OK',
              'cache-control' => 'private',
              'content-type' => 'text/xml',
              'server' => 'Microsoft-IIS/10.0',
              'x-aspnet-version' => '4.0.30319',
              'x-powered-by' => 'ASP.NET',
              'date' => 'Fri, 18 Jun 2021 18:18:00 GMT',
              'x-global-transaction-id' => 'e41d617460cce380d1cfeafd',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '364',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'x-frame-options' => 'SAMEORIGIN',
              'content-encoding' => 'gzip',
              'content-length' => '285',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="7f39f8317fbdb1988ef4c628eba02591:2:1.9685:1.1811:0.3937:1.10231">
            <Error>
                <Number>-2147219385</Number>
                <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
                <Description>The Destination ZIP Code you have entered is invalid.</Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
          'response' => 
          array (
            'code' => 200,
            'message' => 'OK',
          ),
          'cookies' => 
          array (
          ),
          'filename' => NULL,
        ),
        'STANDARD POST' => 
        array (
          'headers' => 
          Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
             'data' => 
            array (
              'x-backside-transport' => 'OK OK',
              'cache-control' => 'private',
              'content-type' => 'text/xml',
              'server' => 'Microsoft-IIS/10.0',
              'x-aspnet-version' => '4.0.30319',
              'x-powered-by' => 'ASP.NET',
              'date' => 'Fri, 18 Jun 2021 18:17:57 GMT',
              'x-global-transaction-id' => '47c16df760cce381b3c353ef',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '364',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'x-frame-options' => 'SAMEORIGIN',
              'content-encoding' => 'gzip',
              'content-length' => '285',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="7f39f8317fbdb1988ef4c628eba02591:2:1.9685:1.1811:0.3937:1.10231">
            <Error>
                <Number>-2147219385</Number>
                <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
                <Description>The Destination ZIP Code you have entered is invalid.</Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
          'response' => 
          array (
            'code' => 200,
            'message' => 'OK',
          ),
          'cookies' => 
          array (
          ),
          'filename' => NULL,
        ),
      ),
      'unitedResponse' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="7f39f8317fbdb1988ef4c628eba02591:2:1.9685:1.1811:0.3937:1.10231">
            <Error>
                <Number>-2147219385</Number>
                <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
                <Description>The Destination ZIP Code you have entered is invalid.</Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
      'shownRates' => 
      array (
      ),
      'eliminatedRates' => 
      array (
      ),
    )
    Plugin Author Dan

    (@dangoodman)

    Hello @subsomatic1, the error is
    The Destination ZIP Code you have entered is invalid.

    This issue that I’m having is that the shipping method isn’t showing up when I’m setting the methods in a specific shipping zone. I can’t imagine that a destination ZIP on the front end would be causing that error?

    Plugin Author Dan

    (@dangoodman)

    @subsomatic1,

    The plugin doesn’t support shipping zones at the moment.

    The ‘The Destination ZIP Code you have entered is invalid’ error is definitely caused by the incorrect zip code provided on checkout. The USPS API can’t provide a shipping price for an unknown destination.

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.