Confused about PayPal Auto Return URL

  • Posts: 246
  • Thank you received: 23
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 11 months ago #154344

-- HikaShop version -- : 2.3.0 / Business

I really don't want to create another post on this but this isn't well documented that I can find.
There are so many posts and threads but I have yet to see what I think is a clear answer.

All I want is to know the Return URL I should put in the PayPal.com control panel:



It is required to enter something.

Is it mydomain.com/index.php?option=com_hikash...pl=component&lang=en

I ultimately want to them to get to after_end view automatically to insure Google Adwords conversion code is displayed .e.g:
www.mydomain.com/index.php?option=com_hi...der_id=73&Itemid=142

My IPN and everything else is working fine with PayPal.

I feel this and the IPN URL would be very helpful to have in the HikaShop PayPal documentation:
www.hikashop.com/index.php?option=com_up...-form&level=Business

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83671
  • Thank you received: 13545
  • MODERATOR
10 years 11 months ago #154363

Hi,

The IPN URL and the Auto Return URL are two different things.

The IPN is for PayPal to notify HikaShop that the payment has been made and it should be

http://mydomain.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=en
Actually, you should not need to set it in your PayPal account since the IPN URL is passed to PayPal by HikaShop on every payment redirect, at the end of the checkout.

The return URL is the URL where the user will go back on your website after the PayPal payment has been made. HikaShop also passes it to PayPal at the end of the checkout and it is:
https://www.mydomain.com/index.php?option=com_hikashop&ctrl=checkout&task=after_end&Itemid=142
(the Itemid parameter will vary based on how your website is configured). However, in that case, it is a manual process and the user has to click on the "return to the website" link after the payment to go back there. So the auto return option of PayPal allows you to automate that, but that requires that you give your return URL yourself to PayPal. Just make sure that you give the return URL and not the IPN URL.

The following user(s) said Thank You: jazzmang

Please Log in or Create an account to join the conversation.

  • Posts: 246
  • Thank you received: 23
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 11 months ago #154402

Thanks Nicolas for clearing that up.

Note PayPal is requiring me to enter a URL in their Return URL control panel field. It will not let me save the On setting otherwise.

I want to set this because when I did a test order, PayPal didn't auto return me to the site. A PayPal user could manually click a link to get back to the site, but most are not going to do that.

I think that would be most helpful to have in the documentation.

Please Log in or Create an account to join the conversation.

  • Posts: 246
  • Thank you received: 23
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 11 months ago #155632

By the way, it doesn't matter what you put in the PayPal control panel's Auto Return URL field.

The HikaShop's plugin overrides it, which is great.

But to enable the Auto Return, PayPal requires you have something in that field no matter what it is.

I tested this in both sandbox and production and it doesn't matter what I put in that URL field as long as it is a valid URL.

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum