[Skip to main content](#vessel-content)

#   Paypal Return URL

##

- **[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")**
- [![gaborgaborgabor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile") Topic Author
- [ Offline](/forum/user/96-gaborgaborgabor)

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 11 months ago [\#840](#840) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  *[Paypal Return URL](/forum/4-how-to/840-paypal-return-url#840 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")* was created by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")*

Hi Everybody,

I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after_end. I´m sure, that out fault. Any ideas?

Thx Nicolas
Gabor
H6

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 11 months ago [\#842](#842) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#842 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

Hi,

Mmmm. Could you try to replace the function Code:

function after_end(){ return true; }

with the function Code:

function after_end(){ if(!isset($this-&gt;current)){ JRequest::setVar( 'layout', 'after_end' ); return $this-&gt;display(); } return true; }

in the file components/com_hikashop/controllers/checkout.php near line 980 and try again ?
Also, the Return URL option should be empty in the configuration of the paypal plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")**
- [![gaborgaborgabor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile") Topic Author
- [ Offline](/forum/user/96-gaborgaborgabor)

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 11 months ago [\#844](#844) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#844 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

nop....that doesn´t work. Can I send you a privat message with the URL of our dev-plattform?
Cheers
Gabor

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 11 months ago [\#846](#846) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#846 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

Sure. You can send the information at nicolas@hikashop.com

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")**
- [![kyrotomia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1086-kyrotomia "View kyrotomia's Profile")
- [ Offline](/forum/user/1086-kyrotomia)

Less More

- Posts: 10
- Thank you received: 0
-
-
- [](http://www.tegara.ca)
-

15 years 8 months ago [\#8507](#8507) by [kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")  Replied by *[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8507 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

Sorry to ressurect an old thread, but I am having the same problem.

I have my paypal plugin cancel url and return url set empty. When completing a payment through paypal sandbox, I am redirect to the homepage with the usual paypal parameteurs :
(I removed some pers. information)
[ dev.myUrl.com/index.php?mc\_gross=25.00&amp;i...n\_link=XXXXXXXXXXXXX](http://dev.myUrl.com/index.php?mc_gross=25.00&invoice=12&protection_eligibility=Eligible&address_status=confirmed&item_number1=terracotta_pot&item_number2=&payer_id=HJJJ6TQ6JLPC8&tax=0.00&address_street=XXXXXXXXXX&payment_date=07:32:29+Feb+18,+2011+PST&payment_status=Completed&charset=windows-1252&address_zip=XXXXXX&mc_shipping=0.00&mc_handling=0.00&first_name=Test&mc_fee=1.03&address_country_code=CA&address_name=Super+User&notify_version=3.0&custom=&payer_status=verified&business=XXXXXX&address_country=XXXXXX&num_cart_items=2&mc_handling1=0.00&mc_handling2=0.00&address_city=XXXXXXXX&payer_email=XXXXXXXXXX&verify_sign=AiPC9BjkCyDFQXbSkoZcgqH3hpacAr09vIRmrxO0woGImPx9uOVGE5jB&mc_shipping1=0.00&mc_shipping2=0.00&tax1=0.00&tax2=0.00&payment_type=instant&txn_id=50B52092J21906003&last_name=User&receiver_email=XXXXXXXX&item_name1=terracotta+pot&address_state=&payment_fee=&item_name2=Livraison&quantity1=1&receiver_id=UKWSLSVTTBKDQ&quantity2=1&txn_type=cart&mc_currency=CAD&mc_gross_1=15.00&mc_gross_2=10.00&residence_country=XXX&test_ipn=1&transaction_subject=Shopping+Cart&payment_gross=&merchant_return_link=XXXXXXXXXXXXX)

Unless HikaShop has a Joomla system plugin (which I did not found), there is surely missing something like : option=com_hikashop&amp;view=checkout&amp;layout=after_end

Would I need to add it manually?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")**
- [![kyrotomia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1086-kyrotomia "View kyrotomia's Profile")
- [ Offline](/forum/user/1086-kyrotomia)

Less More

- Posts: 10
- Thank you received: 0
-
-
- [](http://www.tegara.ca)
-

15 years 8 months ago [\#8529](#8529) by [kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")  Replied by *[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8529 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

I'm still debugging this, and I managed to debug the variable that is sent to paypal :

(
[cmd] =&gt; _ext-enter
[redirect_cmd] =&gt; _cart
[upload] =&gt; 1
[business] =&gt; XXXXX
[receiver_email] =&gt; XXXX
[invoice] =&gt; 22
[currency_code] =&gt; CAD
[return] =&gt; http://dev.myUrl.com?option=com_hikashop&amp;view=checkout&amp;layout=after_end
[notify_url] =&gt; [ dev.myUrl.com/index.php?option=com\_hikas...pl=component&amp;lang=fr](http://dev.myUrl.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypal&tmpl=component&lang=fr)
[cancel_return] =&gt; [ dev.myUrl.com/index.php?option=com\_hikas...el\_order&amp;order\_id=22](http://dev.myUrl.com/index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=22)
[undefined_quantity] =&gt; 0
[test_ipn] =&gt; 1
[no_shipping] =&gt; 1
[no_note] =&gt; 1
[charset] =&gt; utf-8
[address_override] =&gt; 1
[first_name] =&gt; Super
[last_name] =&gt; User
[address1] =&gt; xxx
[address2] =&gt;
[zip] =&gt; xxx
[city] =&gt; xxx
[state] =&gt;
[country] =&gt; CA

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")**
- [![gaborgaborgabor's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile") Topic Author
- [ Offline](/forum/user/96-gaborgaborgabor)

Less More

- Posts: 87
- Thank you received: 10
-
-

15 years 8 months ago [\#8531](#8531) by [gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")  Replied by *[gaborgaborgabor](/forum/user/96-gaborgaborgabor "View gaborgaborgabor's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8531 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

Hi...

this is easy. The problem is just the length of the return request string. Return it to a redirect_paypal_success.php file.....

an put this in

&lt;?php
header('Location:http://www.yourdomain.com/index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end');
?&gt;

Cheers

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")**
- [![kyrotomia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1086-kyrotomia "View kyrotomia's Profile")
- [ Offline](/forum/user/1086-kyrotomia)

Less More

- Posts: 10
- Thank you received: 0
-
-
- [](http://www.tegara.ca)
-

15 years 8 months ago [\#8783](#8783) by [kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")  Replied by *[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8783 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

**gaborgaborgabor écrit:**

> Hi...
>
> The problem is just the length of the return request string.

Is this documented somewhere in the paypal API? I couldn't locate that informaiton.

I know your solution would work, but this is not really what I'm looking for. This is a quick "fix", but operates outside the "CMS" world.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")**
- [![kyrotomia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1086-kyrotomia "View kyrotomia's Profile")
- [ Offline](/forum/user/1086-kyrotomia)

Less More

- Posts: 10
- Thank you received: 0
-
-
- [](http://www.tegara.ca)
-

15 years 8 months ago [\#8827](#8827) by [kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")  Replied by *[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8827 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

According to the Paypal doc, the paypal return variable can be up to 1 024 characteurs. Mine is only 78...

[ Source](https://cms.paypal.com/ca/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

15 years 8 months ago [\#8831](#8831) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8831 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

It surely isn't a problem of URL length, however there is apparently a problem with some URLs while others work.
There are a lot of forum threads out there talking about problems with the return URL: [ www.google.com/search?sourceid=chrome&amp;ie...l+not+working+paypal](http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=return+url+not+working+paypal)
This one seems to have interesting advices :
[ www.x.com/message/152486](https://www.x.com/message/152486)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")**
- [![kyrotomia's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1086-kyrotomia "View kyrotomia's Profile")
- [ Offline](/forum/user/1086-kyrotomia)

Less More

- Posts: 10
- Thank you received: 0
-
-
- [](http://www.tegara.ca)
-

15 years 8 months ago [\#8841](#8841) by [kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")  Replied by *[kyrotomia](/forum/user/1086-kyrotomia "View kyrotomia's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#8841 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

It now works correctly for me. Here is what I did :

In my seller's sandbox, I enabled Auto Return for Website Payments under Profile -&gt; Website Payment Preferences.

I then entered a non-valid url just so I can make some tests.

Also, simply for security issues, I added the rm value to the paypal variables that are being sent ("rm" =&gt; "2" in plugins/hikashoppayment/paypal/paypal.php line 93).

Now, whenever I pay, I'm then automatically redirected to the after_end page. Woot!

> The Return URL specified in your PayPal Account is good for all transactions however, you can override this by using the "return" variable in your individual item button code and direct the buyer to a different URL.

from : [ www.x.com/message/152486#152486](https://www.x.com/message/152486#152486)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Konc](/forum/user/8316-konc "View Konc's Profile")**
- [![Konc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8316-konc "View Konc's Profile")
- [ Offline](/forum/user/8316-konc)

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 2 months ago [\#62126](#62126) by [Konc](/forum/user/8316-konc "View Konc's Profile")  Replied by *[Konc](/forum/user/8316-konc "View Konc's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#62126 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

Hi all. Another question in this topic: After returning from Paypal, user gets the message that the transaction was successfull, but that message is in error message style and OI dont like that. Is there a way to style that particular message with css or redirect user to classic after_end message as it is on other payment methods?

Thank you in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

14 years 2 months ago [\#62235](#62235) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Paypal Return URL](/forum/4-how-to/840-paypal-return-url#62235 "Hi Everybody,  I have a little problem with the returning from paypal. When I come back, it puts me on the homepage and not on the after&#95;end. I´m sure, that out fault. Any ideas?  Thx Nicolas Gabor H6")*

That message is displayed by the after_end view file I think. You can edit it via the menu Display-&gt;Views.
Otherwise, in most payment methods options screen, and in PayPal's too, there is a "return URL" option so that you can redirect the user wherever you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MC1wYXlwYWwtcmV0dXJuLXVybD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.147 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
