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?
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.
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?
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…
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.
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