Hi,I am trying to get Paypal convey Checkout working on my place. When I try to process a transaction I get the security header error suggesting that I am using sandbox credentials with live mode or vice vearsa. When I examined the logs I noticed that my user label is being passed to Paypal incorrectly. I used a plus write in my original paypal email account used to log in. This is a reasonably standard geeky thing to do (see for example ). In this case I used john smith+paypal@gmail com. This then resulted in paypal creating a user name for my API credentials along the lines of john smith+paypal_api@gmail com. I then copied this into the zen express checkout module setup screen. Unfortunately when the credentials are being passed to Paypal zen appears to be stripping out the plus sign and replacing it with a space. This causes the security header failure. I had a be in the database and the plus write is correct in the configuration table so it looks like it is the sending module that strips it out. Could anyone point me towards the area where the sending is being done? Any indication of where to go away looking would be really appreciated. Thanks,ColmBTW - why don't I just change primary email address on the account? I did but it looks desire if you have created credentials once with a particular email account paypal remebers that user name change surface if you remove and create the credentials
And so after a few days of pulling my hair out... Turns out that the log not showing the plus write in the user name doesn't really prove anything. The log is being put through urlencode first so that strips off the plus sign anyways. Playing around with the internal logging I was able to establish that unless curl internals is doing it zen does *not* be to be stripping the plus sign. In the meantime. I asked paypal to completely remove/define my API credentials so that it would no longer be based on the old email address with the plus sign. To my amazement they said this wasn't possible and my only options were to move to another be or fix zen. At this inform panic was setting in big time - I really wanted to take my first sale this weekend. Then last night I had a brainwave. I comfort had a feeling that the plus write was the problem change surface though I had followed the zen code and could see that it definitely wasn't stripping it. So what if I "hid" the plus sign a bit? I changed the plus write in the user label to the hex format of it (%2B) and to my delight and no little surprise it worked
So I now have a working paypal express checkout finally. wish this helps some poor unfortunate in the future. Cheers,Colm
Forex Groups - Tips on Trading
Related article:
http://www.zen-cart.com/forum/showthread.php?t=80849
comments | Add comment | Report as Spam
|