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

#   Worldpay Redirection Page After Payment

##

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

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 8 months ago [\#228441](#228441) by [arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")  *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#228441 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")* was created by *[arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.17
-- Browser(s) name and version -- : Chrome 48

I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.

I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?

Part of the message is hidden for the guests. Please log in or register to see it.

I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODE5OTktd29ybGRwYXktcmVkaXJlY3Rpb24tcGFnZS1hZnRlci1wYXltZW50P3RtcGw9bWFya2Rvd24=) 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: 86290
- Thank you received: 14268
-
-

10 years 8 months ago [\#228606](#228606) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#228606 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Hi,

Add the line:
'return_url' =&gt; array('RETURN_URL', 'input'),
after the line:
'cancel_url' =&gt; array('Cancel URL', 'input'),
in the file plugins/hikashoppayment/bf_rbsbusinessgateway/bf_rbsbusinessgateway.php and that should allow you to enter the URL you want in the settings of the payment method.

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 8 months ago [\#228749](#228749) by [arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")  Replied by *[arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#228749 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Great, thanks for that - have done that now so i can see the field.

The only thing I'm not sure about now is what value should I be entering into there? What I'm looking for is for the user to be redirected back to an order detail page displaying/confirming their order, perhaps with links to download their files if it's been an electronic purchase?

And if that is going to require parameters being passed (ie the order number) then will I need to hardcode the URL into the payment plugin instead of entering it into the new payment plugin in the site admin?

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 8 months ago [\#228770](#228770) by [arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")  Replied by *[arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#228770 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Okay I think I have figured out the URL should be Code:

index.php?option=com_hikashop&amp;cid=xxx&amp;ctrl=order&amp;lang=en&amp;task=show

Where the cid value is the order number, however I'm still redirected to the site's homepage after payment. I've tried entering a test value into the new parameter field in the payment plugin as well as hard-coding it as an extra variable in the payment form by editing **bf\_rbsbusinessgateway\_end.php** but neither seem to work?

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 8 months ago [\#228777](#228777) by [arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")  Replied by *[arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#228777 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Have been trying to work with this but no matter what I do the Worldpay payment page does a meta refresh to the site's homepage after 5 seconds.

I tracked down parts of code in the **bf\_rbsbusinessgateway.php** and **bf\_rbsbusinessgateway\_end.php** files which had a meta refresh in them and also noticed that there were equivalent files in the administration area and tried adjusting both the meta refresh rate (to give me time to view the code) and the redirection page (so that I could tell which of those meta refreshes were performing the redirection) however none of them seemed to have any effect!

I spoke to Worldpay and they confirmed the instruction to metarefresh after 5 seconds and where to come from Hikashop - so where should I look to find the bit doing this so that I can change it?!

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 8 months ago [\#229253](#229253) by [arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")  Replied by *[arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#229253 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Hi there

Still waiting for guidance on this issue?

Simon

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODE5OTktd29ybGRwYXktcmVkaXJlY3Rpb24tcGFnZS1hZnRlci1wYXltZW50P3RtcGw9bWFya2Rvd24=) 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: 86290
- Thank you received: 14268
-
-

10 years 8 months ago [\#229265](#229265) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#229265 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Hi,

You can enter such link: Code:

http://mywebsite.com/index.php?option=com_hikashop&amp;ctrl=order&amp;task=show&amp;order_id={order_id}

There will be a download link there if the order has been paid and that the product has a download file.

HikaShop tells WorldPay to redirect to the after_end URL of HikaShop: index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end
which then automatically redirects to the return URL that you specify in the payment method.
If you get redirected to the homepage, it's something else which interfers with that or that you entered a wrong URL in the return URL setting of the payment method.

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

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

Less More

- Posts: 8
- Thank you received: 1
-
-

10 years 8 months ago [\#231000](#231000) by [arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")  Replied by *[arcascomputing](/forum/user/32711-arcascomputing "View arcascomputing's Profile")* on topic *[Worldpay Redirection Page After Payment](/forum/29-payment-methods/881999-worldpay-redirection-page-after-payment#231000 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.17 -- Browser(s) name and version -- : Chrome 48  I can't see where to set the page to which users are redirected after payment using the Worldpay payment gateway.  I've looked at other forum posts but they all seem to relate to the notifications to update order status which i DO have working, it's just that after payment is made the user is redirected to the homepage and I was wondering if it was possible to show some sort of order confirmation page instead?  I can see a CANCEL URL in the payment plugin settings but no redirect after payment setting.")*

Just to say I finally managed to sort this after much to-ing and fro-ing between Hikashop and Worldpay config.

In the end I figured out that Worldpay's own representatives were giving me duff info in saying that it's not possible to supply a custom redirect URL to for successful and cancelled payments. For the information of others in need of this functionality the two fields which need to be supplied are:
Code:

&lt;input type="hidden" name="MC_returncancel" value="http://www.url.com/cancelled"&gt; &lt;input type="hidden" name="MC_returnsuccess" value="http://www.url.com/success"&gt;

The options supplied in the payment config in Hikashop didn't seem to make a difference so I ended up manually adding both of these additional fields to **plugins\\hikashoppayment\\bf\_rbsbusinessgateway\\bf\_rbsbusinessgateway\_end.php** on/around Line 60.

And obviously you'd just need to adjust the actual value for the URLs in the example above.

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODE5OTktd29ybGRwYXktcmVkaXJlY3Rpb24tcGFnZS1hZnRlci1wYXltZW50P3RtcGw9bWFya2Rvd24=) 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.257 seconds

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

[](#top)
