Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Plugin Contributions
    0

    Default PayPal WPS-IPN: How do I override the return URL?

    Hi,

    I'm setting up a store that uses Website Payments Std IPN as the sole payment option. We're just to the point of live testing and everything is working great except one thing. I need to be able to override the return URL (and the cancel URL for that matter) to something other than the default:

    /zencart/index.php?main_page=checkout_process&referer=paypal

    This Zen Cart install is running inside a frame as part of a larger site. The outer page provides the header, navigation, etc, and Zen Cart runs in an iframe in the page content area, using a basic template to reduce clutter.

    I've managed to make the site break out of it's frame when it hands off to PayPal as it should be but I need it to jump back into the frames when the user comes back from PayPal. As is, Zen Cart is sending the address above as the return URL which means no frame and a confused layout. I need the return URL to be something like:

    /content/shop-return.php

    Which sets up the frames again and displays the Zen Cart order confirmation within it. The PayPal account is set to return to my custom return page but it's being overridden by the form data Zen Cart is posting (the 'return' and 'cancel_return' fields). I've scoured the Admin control panel but I'm not seeing it. How do I change the return URL that Zen Cart sends to PayPal to something of my choosing?
    Thanks :)


    Zencart version 1.3.9d (update planned before go-live).
    New clean install, no addons, etc except a template.
    Last edited by JeremyR; 26 Aug 2010 at 08:39 PM. Reason: Typo in url (oops)

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: PayPal WPS-IPN: How do I override the return URL?

    Did you test the more advanced Express Checkout instead of the older WPS?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Plugin Contributions
    0

    Default Re: PayPal WPS-IPN: How do I override the return URL?

    Thanks,
    No we didn't test Express Checkout. I'll ask if switching is a possibility, though. My understanding is that we're working with WPS mainly because it doesn't require a customer to have a PayPal account (which I believe Express Checkout does require).

    Wouldn't Express Checkout suffer the same problem? My understanding of the EC flow is that the customer hits the express checkout button, authorises the transaction and then returns to the store to confirm and complete. Surely at the point of return to Zen Cart, we're going to have the same problem - returning to an internal ZC page, outside the container frame?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: PayPal WPS-IPN: How do I override the return URL?

    Quote Originally Posted by JeremyR View Post
    My understanding is that we're working with WPS mainly because it doesn't require a customer to have a PayPal account (which I believe Express Checkout does require).
    No, it doesn't require.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: PayPal WPS-IPN: How do I override the return URL?

    Quote Originally Posted by JeremyR View Post
    This Zen Cart install is running inside a frame as part of a larger site.
    We've always strongly advised against doing that.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. I need to use PayPal WPS mx URL (not es)
    By mayte in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 17 Jun 2011, 05:43 PM
  2. PayPal IPN return URL
    By dealbyethan.com in forum Basic Configuration
    Replies: 14
    Last Post: 11 Apr 2011, 11:47 PM
  3. Paypal IPN Auto Return URL not working correctly
    By truffles in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 18 Dec 2009, 04:27 PM
  4. How can I override the checkout_success return URL
    By Doctor Jon in forum Addon Payment Modules
    Replies: 2
    Last Post: 12 Dec 2006, 07:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg