close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error with usps on checkout

Thread began 12/16/2010 2:10 pm by deafboyz_audio386924 | Last modified 12/20/2010 11:10 am by Jason Byrnes | 7416 views | 5 replies |

deafboyz_audio386924

Error with usps on checkout

I have been searching around the forums for some time and cant seem to get this figured out....

i used the testing phpp to generate this response from the checkout_failure.php page... I am using paypal pro and usps.

USPS: 
Full Request: API=RateV3&XML=<RateV3Request uid="413DEAFB5601"><Package ID="0"><Service>PRIORITY</Service><ZipOrigination>10022</ZipOrigination><ZipDestination>20008</ZipDestination><Pounds>10</Pounds><Ounces>5</Ounces><Container>Flat Rate Box</Container><Size>REGULAR</Size></Package></RateV3Request>
Full Response: <Error> <Number>80040b19</Number> <Description>XML Syntax Error: Error getting USERID attribute.</Description> <Source>UspsCom::DoAuth</Source> </Error>



I used the username i got in the email from usps to be used for testing and the server i have set to ShippingAPITest.dll

i cant figure out why its throwing this userid error... any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

what version of PowerStore?

the xml should pass the user id parameter as:
USERID

your code is passing it as
uid


I just checked in the WA_eCart/WA_eCart_USPS_PHP.php file for both PS3 and PS4 and it is properly coded to pass the user id as USERID

Sign in to reply to this post

deafboyz_audio386924

ohhhh..... im using ps3 by the way

i changed the table name to uid a while back.... now that i think about it that was really dumb.... its prolly going to mess a lot of other stuff up to, ill change it back
'

is it supposed to be USERID in all caps?

ill get back with the results

Sign in to reply to this post

deafboyz_audio386924

i just checked the db file and its supposed to be UserID i will change it back, dont know why i changed it originally, i should of known better....

this site is a compalation of web assist, vidiscript, my own custom coding and eventually v bulletin. they all have their own db's and it is one big unorganized mess to coordinate them together and at least look uniform on the outside....

its a project but pretty good for my first site....

check it out at www.deafboyzaudio.com

anyways.... back to the work!

Sign in to reply to this post

deafboyz_audio386924

I dont remember why i cheanged it to uid... prolly bc of my other db but there had to be more of a reason, thats a big change

i had done a search and realized i changed all the UserID to uid so i just tried to mod the ecart_USPS_PHP.php page to say

$USPS_XML = "<" . $USPS_RateType . " USERID=\"" . $USPS_Parameters["UserID"] . "\">";



i'm assumin usps requires it to be passed in the format of USERID= so i just changed that line to do so....

And SUCCESS, i was able to bypass the userid error!!! now i have one about

RateV3 is not a valid API name for this protocol.



did some research and discovered i must upgrade my acct to production... will do tomorrow when tech is open....

this site is a compalation of web assist, vidiscript, my own custom coding and eventually v bulletin. they all have their own db's and it is one big unorganized mess to coordinate them together and at least look uniform on the outside....

its a project but pretty good for my first site....

check it out at www.deafboyzaudio.com

anyways.... back to the work!

Sign in to reply to this post

Jason ByrnesWebAssist

Great, glad to hear you have it working.

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...