greenjeans Posted October 26, 2006 Posted October 26, 2006 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. Quote
dynamoeffects Posted October 26, 2006 Posted October 26, 2006 What are the postal codes that are failing? Quote 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.
greenjeans Posted October 26, 2006 Author Posted October 26, 2006 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. Quote
dynamoeffects Posted October 26, 2006 Posted October 26, 2006 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. Quote 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.
greenjeans Posted October 26, 2006 Author Posted October 26, 2006 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(); Quote
dynamoeffects Posted October 26, 2006 Posted October 26, 2006 Yes, that's it. Quote 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.
greenjeans Posted October 26, 2006 Author Posted October 26, 2006 I've inserted the code into checkout_process.php and will wait to see if I get any more error dumps, thanks. Quote
dynamoeffects Posted October 27, 2006 Posted October 27, 2006 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. Quote 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.
greenjeans Posted October 27, 2006 Author Posted October 27, 2006 okay, thanks for the clarification. I ran a transaction and the postcode variables were indeed filled (one for billing, one for shipping). Quote
dynamoeffects Posted October 27, 2006 Posted October 27, 2006 And does the zipcode you used there fail during checkout? If so, post the zipcode so that I can test it out. Quote 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.
greenjeans Posted October 28, 2006 Author Posted October 28, 2006 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. Quote
Recommended Posts
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.