After a customer has paid with PayPal, the customer is sent back to nopCommerse with payment status. More specific: To the page with “return URL” sat up in the PayPal account.
A lot of nopCommerse users have multiple sites. Maybe a big storefront, and several simple coupon sites and blogs which also have order capability.
PayPal handles this, by allowing us to add separate “return URL”-parameter in the PayPal form value set going from our apps to PayPal like this:
<input type="hidden" name="notify_url" value="[YOURSITEURL_WHICH_HANDLES_IPN]">
<input type="hidden" name="return" value="[YOUR_SITE_URL_WHICH_HANDLES_RETURN_URL]">
<input type="hidden" name="_notify-synch:cmd" value="_notify-synch">\
This works only if your turn off the “hard” return URL sat in the PayPal account settings.
(Since now that information is supposed to follow the order information form, and is specific to each site connected to the common Paypal account)
Like you can see in the order form code above, this is easy to do.
The problem is that I can’t find any parameter in nopCommerse for the return URL.
There are several discussions on the multiple return URL topic at PayPal forums, like this one:Tread on forum