• Resolved icyice

    (@icyice)


    Hi,

    I am having the same issue as the latest ticket. I’ve tried using the blank field and also used my own. No method shows up. It doesn’t show up on checkout page and it doesn’t show up under woocommerce shipping settings where I can assign it to a zone. Not sure if it’s supposed to show up there or not. Here is debug:

    array ( 'error' => 'API reports an error. Data: { "response": "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<Error><Number>80040B23</Number><Description>API Authorization failure. User 4MNEXTF954289 is not authorized to use API RateV4.</Description><Source>USPSCOM::DoAuth</Source></Error>\\n" }.', 'rates' => NULL, 'settings' => array ( 'props' => array ( 'sender' => '46032', 'commercialRates' => true, 'groupByWeight' => true, 'apiEndpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll', 'apiUserId' => '4MNEXTF954289', 'supports' => array ( 0 => 'settings', ), 'id' => 'usps_simple', 'method_title' => 'USPS Simple', 'method_description' => 'Shows live USPS domestic rates on 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 ( ), 'method_order' => NULL, 'has_settings' => NULL, 'settings_html' => NULL, 'plugin_id' => 'woocommerce_', 'errors' => array ( ), 'data' => array ( ), ), 'settings' => array ( 'enabled' => 'yes', 'sender' => '46032', 'user_id' => '4MNEXTF954289', '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_12' => 'yes', 'first_class_15' => 'yes', 'first_class_0B' => 'yes', 'first_class_78' => 'yes', 'first_class_0C' => 'yes', 'ground_advantage' => '', 't_ground_advantage' => '', 'ground_advantage_default' => '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 ( 'f5deaeeae1538fb6c45901d524ee2f98' => array ( 'key' => 'f5deaeeae1538fb6c45901d524ee2f98', 'product_id' => 584, 'variation_id' => 0, 'variation' => array ( ), 'quantity' => 1, 'data_hash' => 'b5c1d5ca8bae6d4896cf1807cdf763f0', 'line_tax_data' => array ( 'subtotal' => array ( 1 => 0.27929999999999999271693695845897309482097625732421875, ), 'total' => array ( 1 => 0.27929999999999999271693695845897309482097625732421875, ), ), 'line_subtotal' => 3.9900000000000002131628207280300557613372802734375, 'line_subtotal_tax' => 0.2800000000000000266453525910037569701671600341796875, 'line_total' => 3.9900000000000002131628207280300557613372802734375, 'line_tax' => 0.2800000000000000266453525910037569701671600341796875, 'product' => array ( 'name' => '1-Gang Rocker Wall Plate - Light Almond', 'slug' => '1-gang-rocker-wall-plate-light-almond', 'price' => '3.99', 'regular_price' => '3.99', 'sale_price' => '', 'weight' => '0.89 oz', 'weight_lbs' => 0.0556248884740999927078775044719805009663105010986328125, 'dimensions' => '3.125 x 0.305 x 4.938 in', 'dimensions_in' => '4.938 x 3.125 x 0.305', ), ), ), 'contents_cost' => 3.9900000000000002131628207280300557613372802734375, 'applied_coupons' => array ( ), 'user' => array ( 'ID' => 1, ), 'destination' => array ( 'country' => 'US', 'state' => 'IN', 'postcode' => '46033', 'city' => 'carmel', 'address' => '653 Holliday Lane', 'address_1' => '653 Holliday Lane', 'address_2' => '', ), 'cart_subtotal' => '3.99', 'rates' => array ( ), ), 'requests' => Dgm\UspsSimple\Calc\Pair::__set_state(array( 'online' => 'API=RateV4&XML= <RateV4Request USERID="4MNEXTF954289"> <Revision>2</Revision> <Package ID="group_by_weight_0:1:0:0:0:0"> <Service>ONLINE</Service> <ZipOrigination>46032</ZipOrigination> <ZipDestination>46033</ZipDestination> <Pounds>0</Pounds> <Ounces>0.89</Ounces> <Container/> <Width>0</Width> <Length>0</Length> <Height>0</Height> <Girth>0</Girth> <Machinable>true</Machinable> <ShipDate>08-Aug-2024</ShipDate> </Package> </RateV4Request> ', 'standard' => 'API=RateV4&XML= <RateV4Request USERID="4MNEXTF954289"> <Revision>2</Revision> <Package ID="group_by_weight_0:1:0:0:0:0"> <Service>STANDARD POST</Service> <ZipOrigination>46032</ZipOrigination> <ZipDestination>46033</ZipDestination> <Pounds>0</Pounds> <Ounces>0.89</Ounces> <Container/> <Width>0</Width> <Length>0</Length> <Height>0</Height> <Girth>0</Girth> <GroundOnly>true</GroundOnly> <Machinable>true</Machinable> <ShipDate>08-Aug-2024</ShipDate> </Package> </RateV4Request> ', )), 'request' => Dgm\UspsSimple\Calc\Request::__set_state(array( 'apiUserId' => '4MNEXTF954289', 'package' => Dgm\UspsSimple\Calc\Package::__set_state(array( 'orig' => Dgm\UspsSimple\Calc\Area::__set_state(array( 'countryCode' => 'US', 'zipCode' => '46032', )), 'dest' => Dgm\UspsSimple\Calc\Area::__set_state(array( 'countryCode' => 'US', 'zipCode' => '46033', )), 'items' => array ( 'f5deaeeae1538fb6c45901d524ee2f98' => Dgm\UspsSimple\Calc\Item::__set_state(array( 'product' => Dgm\UspsSimple\Calc\Product::__set_state(array( 'weight' => 0.0556248884740999927078775044719805009663105010986328125, 'dim' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 4.93799999999999972288833305356092751026153564453125, 'width' => 3.125, 'height' => 0.304999999999999993338661852249060757458209991455078125, )), )), 'quantity' => 1, )), ), )), 'services' => Dgm\UspsSimple\Model\Services::__set_state(array( 'families' => array ( 0 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'express_mail', 'title' => 'Priority Mail Express', 'sort' => 0, 'services' => array ( 0 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Express', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '3', )), 1 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Express, Hold for Pickup', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '2', )), 2 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Express, Sunday/Holiday', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '23', )), ), )), 1 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'priority_mail', 'title' => 'Priority Mail', 'sort' => 1, 'services' => array ( 0 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '1', )), 1 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail, Hold For Pickup', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '33', )), 2 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Keys and IDs', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '18', )), 3 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Regional Rate Box A', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '47', )), 4 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Regional Rate Box A, Hold For Pickup', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '48', )), 5 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Regional Rate Box B', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '49', )), 6 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'Priority Mail Regional Rate Box B, Hold For Pickup', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '50', )), ), )), 2 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'first_class', 'title' => 'First-Class Mail', 'sort' => 2, 'services' => array ( 0 => Dgm\UspsSimple\Model\FirstClass::__set_state(array( 'code' => '0', 'fitFn' => Dgm\UspsSimple\Model\FitMinMax::__set_state(array( 'min' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 5, 'width' => 3.5, 'height' => 0.007000000000000000145716771982051795930601656436920166015625, )), 'max' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 6, 'width' => 4.25, 'height' => 0.01600000000000000033306690738754696212708950042724609375, )), )), 'serviceNamePattern' => 'Postcards', 'family' => NULL, 'title' => 'First-Class Mail Postcards', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '0A', )), 1 => Dgm\UspsSimple\Model\FirstClass::__set_state(array( 'code' => '12', 'fitFn' => Dgm\UspsSimple\Model\FitMinMax::__set_state(array( 'min' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 5, 'width' => 3.5, 'height' => 0.007000000000000000145716771982051795930601656436920166015625, )), 'max' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 6, 'width' => 4.25, 'height' => 0.01600000000000000033306690738754696212708950042724609375, )), )), 'serviceNamePattern' => '', 'family' => NULL, 'title' => 'First-Class Mail Stamped Postcards', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '12', )), 2 => Dgm\UspsSimple\Model\FirstClass::__set_state(array( 'code' => '15', 'fitFn' => Dgm\UspsSimple\Model\FitMinMax::__set_state(array( 'min' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 5, 'width' => 3.5, 'height' => 0.007000000000000000145716771982051795930601656436920166015625, )), 'max' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 6, 'width' => 4.25, 'height' => 0.01600000000000000033306690738754696212708950042724609375, )), )), 'serviceNamePattern' => '', 'family' => NULL, 'title' => 'First-Class Mail Large Postcards', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '15', )), 3 => Dgm\UspsSimple\Model\FirstClass::__set_state(array( 'code' => '0', 'fitFn' => Dgm\UspsSimple\Model\FitMinMax::__set_state(array( 'min' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 5, 'width' => 3.5, 'height' => 0.007000000000000000145716771982051795930601656436920166015625, )), 'max' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 11.5, 'width' => 6.125, 'height' => 0.25, )), )), 'serviceNamePattern' => 'Letter', 'family' => NULL, 'title' => 'First-Class Mail Letter', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '0B', )), 4 => Dgm\UspsSimple\Model\FirstClass::__set_state(array( 'code' => '78', 'fitFn' => Dgm\UspsSimple\Model\FitMinMax::__set_state(array( 'min' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 5, 'width' => 3.5, 'height' => 0.007000000000000000145716771982051795930601656436920166015625, )), 'max' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 11.5, 'width' => 6.125, 'height' => 0.25, )), )), 'serviceNamePattern' => '', 'family' => NULL, 'title' => 'First-Class Mail Metered Letter', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '78', )), 5 => Dgm\UspsSimple\Model\FirstClass::__set_state(array( 'code' => '0', 'fitFn' => Dgm\UspsSimple\Model\FitMinMax::__set_state(array( 'min' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 11.5, 'width' => 6, 'height' => 0.25, )), 'max' => Dgm\UspsSimple\Calc\Dim::__set_state(array( 'length' => 15, 'width' => 12, 'height' => 0.75, )), )), 'serviceNamePattern' => 'Large Envelope', 'family' => NULL, 'title' => 'First-Class Mail Large Envelope', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '0C', )), ), )), 3 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'ground_advantage', 'title' => 'USPS Ground Advantage', 'sort' => 3, 'services' => array ( 0 => Dgm\UspsSimple\Model\GroundAdvantage::__set_state(array( 'family' => NULL, 'title' => 'USPS Ground Advantage', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => 'default', )), ), )), 4 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'standard_post', 'title' => 'USPS Retail Ground', 'sort' => 4, 'services' => array ( 0 => Dgm\UspsSimple\Model\RegularService::__set_state(array( 'family' => NULL, 'title' => 'USPS Retail Ground', 'alwaysUseCommercialRate' => NULL, 'enabled' => true, 'id' => '4', )), ), )), 5 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'media_mail', 'title' => 'Media Mail', 'sort' => 5, 'services' => array ( 0 => Dgm\UspsSimple\Model\AlwaysCommercial::__set_state(array( 'family' => NULL, 'title' => 'Media Mail', 'alwaysUseCommercialRate' => true, 'enabled' => true, 'id' => '6', )), ), )), 6 => Dgm\UspsSimple\Model\ServiceFamily::__set_state(array( 'id' => 'library_mail', 'title' => 'Library Mail', 'sort' => 6, 'services' => array ( 0 => Dgm\UspsSimple\Model\AlwaysCommercial::__set_state(array( 'family' => NULL, 'title' => 'Library Mail', 'alwaysUseCommercialRate' => true, 'enabled' => true, 'id' => '7', )), ), )), ), 'retailGroundEnabled' => true, )), 'groupByWeight' => true, 'commercialRates' => true, )), 'responses' => Dgm\UspsSimple\Calc\Pair::__set_state(array( 'online' => '<?xml version="1.0" encoding="UTF-8"?> <Error> <Number>80040B23</Number> <Description>API Authorization failure. User 4MNEXTF954289 is not authorized to use API RateV4.</Description> <Source>USPSCOM::DoAuth</Source> </Error> ', 'standard' => '<?xml version="1.0" encoding="UTF-8"?> <Error> <Number>80040B23</Number> <Description>API Authorization failure. User 4MNEXTF954289 is not authorized to use API RateV4.</Description> <Source>USPSCOM::DoAuth</Source> </Error> ', )), 'combinedResponse' => '<?xml version="1.0" encoding="UTF-8"?> <Error> <Number>80040B23</Number> <Description>API Authorization failure. User 4MNEXTF954289 is not authorized to use API RateV4.</Description> <Source>USPSCOM::DoAuth</Source> </Error> ', )

    Thank you for any help you may provide! ??

    • This topic was modified 3 months, 2 weeks ago by icyice.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter icyice

    (@icyice)

    Disregard. I see the API failure in there. I have requested to get that approved by USPS.

    It is now working for some reason after deleting my User ID. Not sure why it wasn’t working before.

    Thanks!

    Plugin Author Dan

    (@dangoodman)

    Thank you for the update!

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