• Resolved Alexkehoe

    (@alexkehoe)


    I have two sites that are listed below and that both use the same paypal account. How can I set individual return urls for each. Currently american customers are redirected back to the UK site which halts the transaction process.

    http://yogaplanet.co.uk
    https://yogaplanet.us

    Paypal said the following
    “If your using the same PayPal account for both sites and want separate return URL’s, you need to be passing a unique return URL with each transaction from both sites.

    This can be done with the variable “RETURNURL” passed with each Express Checkout API request.”

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor angelleye

    (@angelleye)

    Are you referring to a multi-site configuration with WordPress, or is this two entirely separate sites?

    Either way, if they’re running from their own domains it shouldn’t be an issue. The plugin uses the RETURNURL parameter as mentioned, and it builds the URL using the WordPress / WooCommerce functions for dynamically pulling domain values. You can see specifically how that gets generated here: https://github.com/angelleye/paypal-woocommerce/blob/release/classes/wc-gateway-paypal-express-angelleye.php#L719-L728

    We have not had any other reports of this being an issue, and I know there are plenty of people using our stuff with multiple sites on the same PayPal account.

    It almost sounds like you’re using PayPal Standard instead of Express, and it’s falling to the Return URL you have configured in your PayPal account profile.

    Can you double check that you do NOT have PayPal Standard enabled, and you DO have Express Checkout enabled?

    Thread Starter Alexkehoe

    (@alexkehoe)

    Two entirely different sites. The second site however, was created using a plugin that completely duplicates the first site files so that could be why i am having problems now.

    Yes Paypal Standard is disabled and Express checkout is enabled.

    Just tested yogaplanet.us again and it definitely returns the user back to the uk site rather than completing the payment process.

    Plugin Contributor angelleye

    (@angelleye)

    As I mentioned before, we don’t have any other reports of this being a problem, and I haven’t seen it myself either. I have quite a few clients that run multiple sites with the same account using this plugin.

    I’ve never specifically tested a copy plugin like you mentioned. I wouldn’t think that would be an issue because the return URL is getting generated dynamically based on the WordPress system that it’s running from.

    Have you checked all the settings on the site that was copied over to make sure the domain settings were updated as necessary for it to be running on its own domain / URL?

    Thread Starter Alexkehoe

    (@alexkehoe)

    Ive been through all the settings that I can see and everything seems to be correct for the new domain. Sites all working as it should but for some reason paypal are being passed the wrong site information.The Cancel and Return To Merchant link also returns a 404.

    Not sure what to try…

    Plugin Contributor angelleye

    (@angelleye)

    We could troubleshoot it for you, but this sort of thing would be outside the scope of what we can offer for free support. If you want to submit an order for premium support we can jump in and take a closer look.

    Thread Starter Alexkehoe

    (@alexkehoe)

    It seems my previous message didnt get posted. I managed to fix the problem. It turs out my geo redirect was getting confused for some reason on the paypal payment page. I have disabled it and now it works fine. Thank you for your help anyway

    Plugin Contributor angelleye

    (@angelleye)

    Glad to hear it!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple ReturnURLs’ is closed to new replies.