New Zenner
- Join Date:
- May 2010
- Posts:
- 7
- Plugin Contributions:
- 0
Chaning the PayPal Express Checkout return page
Hi, I was wondering where I can find the code to change the return page for PayPal Express Checkout, so it lands on the checkout_confirmation page, rather than the checkout_payment page.
In the file paypalwpp.php payment module I found this bit of code:
// Set the return URL if they click "Submit" on PayPal site
$return_url = zen_href_link('ipn_main_handler.php', 'type=ec', 'SSL', true, true, true);
// Select the return URL if they click "cancel" on PayPal site or click to return without making payment or login
$cancel_url = zen_href_link(($_SESSION['customer_first_name'] != '' && $_SESSION['customer_id'] != '' ? FILENAME_CHECKOUT_SHIPPING :FILENAME_LOGIN), 'ec_cancel=1', 'SSL');
and I was successfully able to change the cancel_url by changing FILENAME_CHECKOUT_SHIPPING to FILENAME_CHECKOUT_CONFIRMATION
But with the return_url, it appears to be using ipn_main_handler.php. So I checked out that file and could find what could be redirecting to the CHECKOUT_PAYMENT or CHECKOUT_SHIPPING pages. I have tried replacing all instances of these with CHECKOUT_CONFIRMATION, but had no luck.
Could somebody please tell me what bit of code tells PayPal which page to return to?
Using v1.3.8a btw
Thanks in advance!