Forums / PayPal Express Checkout support / Doesn't like & in shipping address details

Doesn't like & in shipping address details

Locked

Views: 2,692

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
24 Feb 2007, 5:24 PM
#1
alphalion avatar

alphalion

New Zenner

Join Date:
Sep 2006
Posts:
19
Plugin Contributions:
0

Doesn't like & in shipping address details

Hi,
I'm hoping this is an easy one.
I have all the latest and greatest PPEC patches installed.

If an order is placed where no shipping is required (for example purchase a gift certificate), the order is processed just fine.

If shipping is required, as it is for 99.9% of my items, after clicking Confirm Order, the following error appears:

"We were not able to process your order. Please try again, select an alternate payment method, or contact the store owner for assistance. (Missing Parameter)"

and the customer is redirected back to the Payment information page.

Any help would be greatly appreciated.

24 Feb 2007, 5:48 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Doesn't like & in shipping address details

What shipping modules do you have enabled?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 Feb 2007, 5:57 PM
#3
alphalion avatar

alphalion

New Zenner

Join Date:
Sep 2006
Posts:
19
Plugin Contributions:
0

Re: Doesn't like & in shipping address details

I have FedEx Express, FedEx Ground and Table modules active

25 Feb 2007, 7:47 PM
#4
alphalion avatar

alphalion

New Zenner

Join Date:
Sep 2006
Posts:
19
Plugin Contributions:
0

Re: Doesn't like & in shipping address details

Ok, I figured this out.
The PPEC module is working fine. There is however a small glitch.
If the recipients ship to name in their PayPal account has an ampersand "&" symbol in it, thats when the error comes in.

This probably not all that common, it just happened to be that the account I was using to test with did have that. I created a Gift Shipping address in PayPal to get around that issue.

26 Feb 2007, 6:02 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Doesn't like & in shipping address details

Could you turn on your debug logs?

Also ensure that you have the current Patch added:
http://www.zen-cart.com/forum/showthread.php?t=56216

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Feb 2007, 9:07 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Doesn't like & in shipping address details

AlphaLion:

Ok, I figured this out.
The PPEC module is working fine. There is however a small glitch.
If the recipients ship to name in their PayPal account has an ampersand "&" symbol in it, thats when the error comes in.

This probably not all that common, it just happened to be that the account I was using to test with did have that. I created a Gift Shipping address in PayPal to get around that issue.
Yes, that could be a problem. Uncommon, but possible nonetheless ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

26 Feb 2007, 4:27 PM
#7
alphalion avatar

alphalion

New Zenner

Join Date:
Sep 2006
Posts:
19
Plugin Contributions:
0

Re: Doesn't like & in shipping address details

Hi Ajeh,
I have the debug logs set to on for Alerts only.

I have attached the most relevant of those logs.

If you would like, I can provide more logs or information, or set the logs to Log File, but as you can see from this log, the ampersand seems to be taken as an operator rather than a character.

It changes the ShipToName from "General Military & More" to
'SHIPTONAME[23]' => 'General Military '
and adds the portion after the ampersand as a parameter.
' More' => NULL

And yes, I do have the latest patch.

Thanks

26 Feb 2007, 4:31 PM
#8
alphalion avatar

alphalion

New Zenner

Join Date:
Sep 2006
Posts:
19
Plugin Contributions:
0

Re: Doesn't like & in shipping address details

The file didnt attach on previous post ... here it is

26 Feb 2007, 11:04 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Doesn't like & in shipping address details

Yes - this is an unfortunate quirk ... it's using Payflow Pro methods for protecting special characters (& and =), but the EC services don't use the same method.

A patch will be posted shortly with a fix on this.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Mar 2007, 6:26 PM
#10
alphalion avatar

alphalion

New Zenner

Join Date:
Sep 2006
Posts:
19
Plugin Contributions:
0

Re: Doesn't like & in shipping address details

That new patch (PPEC-137-patches-Feb-28-2007.zip) fixed this issue.

Thanks for your attention and quick work.
:yes:

1 Mar 2007, 6:56 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Doesn't like & in shipping address details

Thanks for confirming that this resolved the problem with & or = symbols in addresses.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.