• Resolved estbgnz

    (@estbgnz)


    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' => 'yes',
            '0D' => 'yes',
            12 => 'no',
            15 => 'no',
            19 => 'no',
            61 => 'yes',
            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' => '32084',
          'userId' => '474MEXIZ4381',
          'commercialRate' => 'no',
          'groupByWeight' => 'yes',
          't_express_mail' => 'Priority Mail Express',
          't_priority_mail' => 'Priority Mail',
          't_first_class' => 'First Class Mail USPS',
          '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' => '32084',
          'user_id' => '474MEXIZ4381',
          'commercial_rate' => 'no',
          'group_by_weight' => 'yes',
          '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 USPS',
          'first_class_0A' => 'no',
          'first_class_0B' => 'no',
          'first_class_0C' => 'yes',
          'first_class_0D' => 'yes',
          'first_class_12' => 'no',
          'first_class_15' => 'no',
          'first_class_19' => 'no',
          'first_class_61' => 'yes',
          '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 (
          '4496bf24afe7fab6f046bf4923da8de6' => 
          array (
            'key' => '4496bf24afe7fab6f046bf4923da8de6',
            'product_id' => 1828,
            'variation_id' => 0,
            'variation' => 
            array (
            ),
            'quantity' => 1,
            'data_hash' => 'b5c1d5ca8bae6d4896cf1807cdf763f0',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
                6 => 3.621375000000000010658141036401502788066864013671875,
              ),
              'total' => 
              array (
                6 => 3.621375000000000010658141036401502788066864013671875,
              ),
            ),
            'line_subtotal' => 49.9500000000000028421709430404007434844970703125,
            'line_subtotal_tax' => 3.62000000000000010658141036401502788066864013671875,
            'line_total' => 49.9500000000000028421709430404007434844970703125,
            'line_tax' => 3.62000000000000010658141036401502788066864013671875,
            'product' => 
            array (
              'name' => 'Red Hand Bag',
              'slug' => 'red-hand-bag',
              'price' => '49.95',
              'regular_price' => '49.95',
              'sale_price' => '',
              'weight' => '13.5 oz',
              'weight_lbs' => 0.8437483083149999174565891735255718231201171875,
              'dimensions' => '12 x 14 x  in',
              'dimensions_in' => '12 x 14 x ',
            ),
          ),
        ),
        'contents_cost' => 49.9500000000000028421709430404007434844970703125,
        'applied_coupons' => 
        array (
        ),
        'user' => 
        array (
          'ID' => 7,
        ),
        'destination' => 
        array (
          'country' => 'US',
          'state' => 'CA',
          'postcode' => '90065',
          'city' => 'Los angeles',
          'address' => '3033 Treadwell St',
          'address_1' => '3033 Treadwell St',
          'address_2' => '',
        ),
        'cart_subtotal' => '49.95',
        'rates' => 
        array (
        ),
      ),
      'requests' => 
      array (
        'ONLINE' => 'API=RateV4&XML=
    <RateV4Request USERID="474MEXIZ4381">
        <Revision>2</Revision>
        <Package ID="4496bf24afe7fab6f046bf4923da8de6:1:14:12::0.843748308315">
            <Service>ONLINE</Service>
            <ZipOrigination>32084</ZipOrigination>
            <ZipDestination>90065</ZipDestination>
            <Pounds>0</Pounds>
            <Ounces>13.50</Ounces>
            <Container>RECTANGULAR</Container>
            <Size>LARGE</Size>
            <Width>12</Width>
            <Length>14</Length>
            <Height/>
            <Girth>24</Girth>
            <Machinable>true</Machinable>
            <ShipDate>18-Mar-2021</ShipDate>
        </Package>
    </RateV4Request>
    ',
        'STANDARD POST' => 'API=RateV4&XML=
    <RateV4Request USERID="474MEXIZ4381">
        <Revision>2</Revision>
        <Package ID="4496bf24afe7fab6f046bf4923da8de6:1:14:12::0.843748308315">
            <Service>STANDARD POST</Service>
            <ZipOrigination>32084</ZipOrigination>
            <ZipDestination>90065</ZipDestination>
            <Pounds>0</Pounds>
            <Ounces>13.50</Ounces>
            <Container>RECTANGULAR</Container>
            <Size>LARGE</Size>
            <Width>12</Width>
            <Length>14</Length>
            <Height/>
            <Girth>24</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',
              '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, 17 Mar 2021 01:15:26 GMT',
              'x-global-transaction-id' => '47c16df760515830e5d84d5f',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '341',
              'x-frame-options' => 'SAMEORIGIN',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'content-encoding' => 'gzip',
              'content-length' => '268',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="4496bf24afe7fab6f046bf4923da8de6:1:14:12::0.843748308315">
            <Error>
                <Number>-2147219385</Number>
                <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
                <Description>All dimensions must be greater than 0</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, 17 Mar 2021 01:15:27 GMT',
              'x-global-transaction-id' => 'e41d61746051583087900573',
              'access-control-allow-origin' => '*',
              'ntcoent-length' => '341',
              'x-frame-options' => 'SAMEORIGIN',
              'strict-transport-security' => 'max-age=31536000; includeSubDomains',
              'content-encoding' => 'gzip',
              'content-length' => '268',
            ),
          )),
          'body' => '<?xml version="1.0" encoding="UTF-8"?>
    <RateV4Response>
        <Package ID="4496bf24afe7fab6f046bf4923da8de6:1:14:12::0.843748308315">
            <Error>
                <Number>-2147219385</Number>
                <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
                <Description>All dimensions must be greater than 0</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="4496bf24afe7fab6f046bf4923da8de6:1:14:12::0.843748308315">
            <Error>
                <Number>-2147219385</Number>
                <Source>DomPostageLibrary;RateV4.ProcessRequest</Source>
                <Description>All dimensions must be greater than 0</Description>
                <HelpFile/>
                <HelpContext/>
            </Error>
        </Package>
    </RateV4Response>
    ',
      'shownRates' => 
      array (
      ),
      'eliminatedRates' => 
      array (
      ),
    )

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Dan

    (@dangoodman)

    Thank you for the details.

    The USPS API responds with the error: All dimensions must be greater than 0.

    The issue is that the item in the cart (‘Red Hand Bag’) doesn’t have a height set.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin not workiing’ is closed to new replies.