Page 1 of 1

R11 how does the paypal redirect fire?

Posted: Thu Jan 28, 2016 7:53 am
by AbleMods
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?

Re: R11 how does the paypal redirect fire?

Posted: Thu Jan 28, 2016 11:01 am
by AbleMods
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 :)