PayPal problem in 7.0.0

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

PayPal problem in 7.0.0

Post by jmestep » Mon Dec 07, 2009 6:24 am

One of our clients is having trouble with Paypal IPN and we have applied all the patches. He did send a link this time that might give a clue to what is going on. He says the customers go to PP and are able to pay there OK, but when they get back to the site, the get an object reference not set to an instance of an object. Here is the link from the browser- could the error be because the url gets chopped off? I turned on debug in the gateway and we're not getting any errors.
I'm going to check his database for field size- maybe that has something to do with it? (I took out the domain name so the link would show .)
ProcessPayPal.ashx?OrderId=51483&tx=20N878553J943294S&st=Completed&amt=8.99&cc=USD&cm=51483&item_number=
Last edited by jmestep on Fri Dec 18, 2009 4:15 pm, edited 1 time in total.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: PayPal problem in 7.0.0

Post by AbleMods » Tue Dec 08, 2009 7:18 am

Judy, I think that the PayPal postback link is initially constructed on the AC7 side of the equation. If I remember correctly, the button is essentially a "Buy Now" button and all the parameters of the order are encoded into the button OnClick URL. You might take a look at the HTML source of a completed order on the receipt page and see if the full HTML is being constructed.

Another possibility is perhaps a character in the URL is incompatible with HTTP like an ampersand in the product or store name, that sort of thing. That would certainly throw off the syntax of the URL.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: PayPal problem in 7.0.0

Post by AbleMods » Tue Dec 08, 2009 7:21 am

AbleMods wrote:Another possibility is perhaps a character in the URL is incompatible with HTTP like an ampersand in the product or store name, that sort of thing. That would certainly throw off the syntax of the URL.
As I look at the URL you posted some more, this seems more and more likely. If the customer put "http-type" symbols in the item number (aka SKU) field like ampersand, percent sign etc, that would probably blow the whole URL syntax.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: PayPal problem in 7.0.0

Post by jmestep » Tue Dec 08, 2009 3:57 pm

Thanks, Joe.
I will email this link to the client.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

ThinkNoodle
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 33
Joined: Fri Oct 10, 2008 7:14 am
Location: UK

Re: PayPal problem in 7.0.0

Post by ThinkNoodle » Fri Dec 18, 2009 3:39 pm

Hi,

I've been having the same problem.

Is "auto return" turned on under Profile > website payment preferences in PayPal?

If so turn it off and see if that helps. (go back in and make sure it has acually turned off auto return, it took me 3 goes before it finally did turn it off - it seems to set it back on)

Since I've turned it off it seems to be working.

Hope this helps

Regards

Matt

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: PayPal problem in 7.0.0

Post by Logan Rhodehamel » Fri Dec 18, 2009 6:13 pm

This post is mainly directed at Judy, but others may find it helpful.

If the PayPal module has been updated to the most recently patched version for the 7.0.0 release, then it should have some fairly good tracing abilities. The trick will be getting a trace that captures an IPN. You might try something like this in the web.config:

Code: Select all

<trace enabled="true" requestLimit="1000" mostRecent="true" pageOutput="false" localOnly="false" />
Then when you get an IPN error, if you can get to the trace page within the next 1000 requests you'll be able to obtain much richer debug information. Do this by going to the trace page:

http:/yoursite/trace.axd

If you can get the trace info it will have more answers - like what details were posted. I'm not sure enabling the trace would be ideal in a production environment. It would be best if this is an error you know you cna reproduce, such that you could enable trace, repoduce the error, get the trace details, then disable the tracing.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

wave_werks
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 91
Joined: Mon Sep 22, 2008 8:37 pm
Location: Northeast Ohio
Contact:

Re: PayPal problem in 7.0.0

Post by wave_werks » Fri Dec 18, 2009 9:08 pm

Sorry for posting this over and over again. I wanted to make sure that each thread related to this topic had the answer in the event that someone searched for a way to fix this ugly issue.

Thanks to compunerdy for the help!!!

Here's what you need to do:
______________________________________________

Go to PayPal > Profile > Website Payment Preferences

Auto Return: Off

Return URL: leave blank

Payment Data Transfer: Off

Block Non-encrypted Website Payment: Off

PayPal Account Optional: On

Contact Telephone: this setting does not matter so you can decide for yourself

Support giropay and bank transfer payments: No
______________________________________________

With these settings in place everything is absolutely perfect. People can checkout on the website, go to PayPal to make their Payment, and then either click to return to the site or continue on with other business.

Thanks again to compunerdy for the help!

Happy Holidays!!!
- Jeff
Wave Werks

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: PayPal problem in 7.0.0

Post by jmestep » Sat Dec 19, 2009 7:32 am

Logan,
I was really hesitant to try the trace on a production site. I do it quite frequently on my test sites.
We did just move a site to our servers and he is using 7.0.3 with ipn, so I was going to see if the same thing happened to that site.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply