Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Some customers, not all of them, are getting "invalid postal code" errors when checking out using Paypal Direct Payment. In my error dumps, this is showing up as a 10730 error code (There's an error with this transaction. Please enter a valid postal code in the shipping address.) When they get this code there is nothing they can do to proceed with checkout. In my admin area, I have set the minimum requirement to zero hoping this would help, but it hasn't.

 

I have been able to replicate this problem once, but every other time everything has gone through fine. Has anyone else had this problem? Any ideas on what could be causing this?

 

Thanks for the help.

Posted

What are the postal codes that are failing?

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Posted
What are the postal codes that are failing?

 

Not sure of the specific zipcodes, but they are all 5-digit US. When I had the problem I was entering in a California zip.

Posted

10730 means that the zip code field is blank, which means that it's not getting passed somewhere. You should add a:

 

die(print_r($order));

 

before the line:

$payment->before_process();

 

in checkout_process.php and see if the postal code variable is filled. If not, your problem's not with the paypal module.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Posted
10730 means that the zip code field is blank, which means that it's not getting passed somewhere. You should add a:

 

die(print_r($order));

 

before the line:

$payment->before_process();

 

in checkout_process.php and see if the postal code variable is filled. If not, your problem's not with the paypal module.

 

I'm not finding that specific bit of code - could it be this line?

$payment_modules->before_process();

Posted

Yes, that's it.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Posted

No, the idea is that you go through your checkout and when it's processing your order at the end, it should simply die and dump out that message. This is not something you want to leave in for your customers. After you get the message, remove that statement.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Posted

And does the zipcode you used there fail during checkout? If so, post the zipcode so that I can test it out.

Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.

Posted

No, after I took out that line of code from checkout_process.php I ran a transaction through fine, using the same information. For some reason there are some people out there who can't proceed with checkout because of this error yet others are experiencing no problems. Do you think that maybe it's a connection issue? That something is timing out when they are entering in their information? Thanks for the help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...