R11 how does the paypal redirect fire?

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

R11 how does the paypal redirect fire?

Post by AbleMods » Thu Jan 28, 2016 7:53 am

Somehow when we customized the checkout payment page and receipt page, we broke the whole paypal redirect.

Shoppers click PayPal and are taken to the receipt page, but the redirect to the PayPal website never fires. They just sit on the receipt page.

Any ideas where to begin looking?
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: R11 how does the paypal redirect fire?

Post by AbleMods » Thu Jan 28, 2016 11:01 am

Found it.

There is a user control on the Receipt Page that handles showing the order payment(s). In /ConLib/Account/OrderPayments.ascx, there is a reference to another user control /ConLib/Utility/PayPalBuyNowButton.ascx.

In the PayPal button control, there is some code that automatically clicks the paypal button if the page is being loaded within 10 seconds of the order date. The button click performs the correct redirect.

I would whine about making that easier to find, but only because I haven't whined about much today and the day's almost over :)
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

Post Reply