close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

usps shipping

Thread began 2/21/2010 6:24 pm by muddysmurf | Last modified 3/01/2010 4:50 pm by Eric Mittman | 1020 views | 4 replies |

muddysmurf

usps shipping

I've followed the instructions on getting a username and the correct testing api for USPS shipping. I've entered this information in, and saved.

I go to checkout using my sandbox info, and i'm getting "Shipping=fail" in the address bar and an error message saying that either my billing/payment info is invalid and it gives the link to the checkout page to try again.

When I go back into my cms, and disable shipping. I use this same info to checkout, and everything goes through completely.

I've tried checking test mode, and unchecking test mode. I've also tried both http and https links the email gave me to try. I even requested permission for the address api (the link it gave me after I signed up for my usps username).

I am at a loss at what I am doing wrong.

Sign in to reply to this post

Eric Mittman

You will need to check for the message that USPS is returning if you have the shipping=fail in the URL when getting to the failure page. Here is the code for USPS and PayPal direct Pay:

php:
<?php

if(!session_id()) session_start(); 
echo(
"PayPal Full Request :<br />");
echo(
"<code>".isset($_SESSION["PP_DirectPayment_postedValues"])?$_SESSION["PP_DirectPayment_postedValues"]:""."</code><br /><br />");
echo(
"Paypal Full Response :<br />");
echo(
"<code>".isset($_SESSION["PP_DirectPayment"])?$_SESSION["PP_DirectPayment"]:""."</code><br /><br />");
echo(
"USPS Full Request :<br />");
echo(
"<code>".isset($_SESSION["WA_Store_Cart_USPS_FullRequest"])?$_SESSION["WA_Store_Cart_USPS_FullRequest"]:""."</code><br /><br />");
echo(
"USPS Full Response :<br />");
echo(
"<code>".isset($_SESSION["WA_Store_Cart_USPS_FullResponse"])?$_SESSION["WA_Store_Cart_USPS_FullResponse"]:""."</code><br /><br />");
?>



Put this in place on the checkout page and run a test to see what is returned. If you have the full username and password for USPS then you should not have to adjust any of the other settings.

Sign in to reply to this post

muddysmurf

I'm getting this error message after putting that piece of code in the checkout_fail.php page.

This one is using the ShippingAPITest.dll


PayPal Full Request :
Paypal Full Response :
USPS Full Request :
API=RateV3&XML=FIRST CLASSPARCEL350629513102REGULARUSPS Full Response :
80040b1a API Authorization failure. RateV3 is not a valid API name for this protocol. UspsCom::DoAuth

I haven't gotten my account approved for production yet, but I tried the shippingapi.dll

and got this error message:

PayPal Full Request :
Paypal Full Response :
USPS Full Request :
API=RateV3&XML=FIRST CLASSPARCEL350629513102REGULARUSPS Full Response :
80040b1a Authorization failure. You are not authorized to connect to this server. UspsCom::DoAuth


Before I added the php code to the checkout_fail.php page, I added it to the bottom of the checkout.php page. It didn't return anything.


Hopefully you guys can help, this is the last stage before going live.

Sign in to reply to this post

carleneBeta Tester

Could someone please point me to the thread with the USPS fix/problem outlined and the testing server info that everyone is referring to here? I'm searching through the forum but haven't found it yet and time is running out. I need to get my store working!

Sign in to reply to this post

Eric Mittman

You should be using the production servers for your USPS v3 rate API. This is an odd bug with USPS as they do not support testing on this version of the API. This means that you must contact USPS and let them know that you are working with the v3 API and need access to the production server. They should be able to enable this option for you so that you do not get any further error messages.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...