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

#   Urgent help needed - worldpay business plugin

##

- **[Density5](/forum/user/6013-density5 "View Density5's Profile")**
- [![Density5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6013.gif)](/forum/user/6013-density5 "View Density5's Profile") Topic Author
- [ Offline](/forum/user/6013-density5)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 6 months ago [\#46425](#46425) by [Density5](/forum/user/6013-density5 "View Density5's Profile")  *[Urgent help needed - worldpay business plugin](/forum/4-how-to/46425-urgent-help-needed-worldpay-business-plugin#46425 "Hi, sorry to use 'urgent' in the title, but the site is supposed to go live on Monday and at the moment it is really broken.  I am doing a lot of processing to add stuff to custom database tables in a hikashop plugin in the function onAfterOrderUpdate. Using the Check payment method set to confirm payments immediately, everything worked. We started implementing Worldpay Business and found the payment plugin didn't work and you supplied us with a new one called bf&#95;rbsbusinessgateway&#95;2012-03-27. This plugin works fine with Worldpay, unfortunately my custom plugin is now broken:  When an order is confirmed at Worlpay, onAfterOrderUpdate is called but the $order parameter is empty. I added an implementation of onAfterOrderConfirm (which I saw was implemented in the payment plugin) to pass through to onAfterOrderUpdate, and now the $order parameter contains the updated order status and history, but when I call the hikashop helper loadFullOrder($order-&gt;order&#95;id) the return value is empty. I absolutely need to access the full order when payment comes back confirmed, and I cannot understand why hikashop cannot retrieve it when given a valid order Id.  Any help you can give us would be much appreciated.  Regards,  Jerry")* was created by *[Density5](/forum/user/6013-density5 "View Density5's Profile")*

Hi, sorry to use 'urgent' in the title, but the site is supposed to go live on Monday and at the moment it is really broken.

I am doing a lot of processing to add stuff to custom database tables in a hikashop plugin in the function onAfterOrderUpdate. Using the Check payment method set to confirm payments immediately, everything worked. We started implementing Worldpay Business and found the payment plugin didn't work and you supplied us with a new one called bf_rbsbusinessgateway_2012-03-27. This plugin works fine with Worldpay, unfortunately my custom plugin is now broken:

When an order is confirmed at Worlpay, onAfterOrderUpdate is called but the $order parameter is empty. I added an implementation of onAfterOrderConfirm (which I saw was implemented in the payment plugin) to pass through to onAfterOrderUpdate, and now the $order parameter contains the updated order status and history, but when I call the hikashop helper loadFullOrder($order-&gt;order_id) the return value is empty. I absolutely need to access the full order when payment comes back confirmed, and I cannot understand why hikashop cannot retrieve it when given a valid order Id.

Any help you can give us would be much appreciated.

Regards,

Jerry

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NDI1LXVyZ2VudC1oZWxwLW5lZWRlZC13b3JsZHBheS1idXNpbmVzcy1wbHVnaW4/dG1wbD1tYXJrZG93bg==) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14277
-
-

14 years 6 months ago [\#46427](#46427) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Urgent help needed - worldpay business plugin](/forum/4-how-to/46425-urgent-help-needed-worldpay-business-plugin#46427 "Hi, sorry to use 'urgent' in the title, but the site is supposed to go live on Monday and at the moment it is really broken.  I am doing a lot of processing to add stuff to custom database tables in a hikashop plugin in the function onAfterOrderUpdate. Using the Check payment method set to confirm payments immediately, everything worked. We started implementing Worldpay Business and found the payment plugin didn't work and you supplied us with a new one called bf&#95;rbsbusinessgateway&#95;2012-03-27. This plugin works fine with Worldpay, unfortunately my custom plugin is now broken:  When an order is confirmed at Worlpay, onAfterOrderUpdate is called but the $order parameter is empty. I added an implementation of onAfterOrderConfirm (which I saw was implemented in the payment plugin) to pass through to onAfterOrderUpdate, and now the $order parameter contains the updated order status and history, but when I call the hikashop helper loadFullOrder($order-&gt;order&#95;id) the return value is empty. I absolutely need to access the full order when payment comes back confirmed, and I cannot understand why hikashop cannot retrieve it when given a valid order Id.  Any help you can give us would be much appreciated.  Regards,  Jerry")*

The loadFullOrder function will check whether the current user has the right to get the information of the order.
In your plugin, you don't have that right.
Here is the definition of that function:
function loadFullOrder($order_id,$additionalData=false,$checkUser=true)

so instead of : loadFullOrder($order-&gt;order_id)

you should do: loadFullOrder($order-&gt;order_id,false,false)

The following user(s) said Thank You: [Density5](/forum/user/6013-density5 "View Density5's Profile")

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

- **[Density5](/forum/user/6013-density5 "View Density5's Profile")**
- [![Density5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6013.gif)](/forum/user/6013-density5 "View Density5's Profile") Topic Author
- [ Offline](/forum/user/6013-density5)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 6 months ago [\#46432](#46432) by [Density5](/forum/user/6013-density5 "View Density5's Profile")  Replied by *[Density5](/forum/user/6013-density5 "View Density5's Profile")* on topic *[Re: Urgent help needed - worldpay business plugin](/forum/4-how-to/46425-urgent-help-needed-worldpay-business-plugin#46432 "Hi, sorry to use 'urgent' in the title, but the site is supposed to go live on Monday and at the moment it is really broken.  I am doing a lot of processing to add stuff to custom database tables in a hikashop plugin in the function onAfterOrderUpdate. Using the Check payment method set to confirm payments immediately, everything worked. We started implementing Worldpay Business and found the payment plugin didn't work and you supplied us with a new one called bf&#95;rbsbusinessgateway&#95;2012-03-27. This plugin works fine with Worldpay, unfortunately my custom plugin is now broken:  When an order is confirmed at Worlpay, onAfterOrderUpdate is called but the $order parameter is empty. I added an implementation of onAfterOrderConfirm (which I saw was implemented in the payment plugin) to pass through to onAfterOrderUpdate, and now the $order parameter contains the updated order status and history, but when I call the hikashop helper loadFullOrder($order-&gt;order&#95;id) the return value is empty. I absolutely need to access the full order when payment comes back confirmed, and I cannot understand why hikashop cannot retrieve it when given a valid order Id.  Any help you can give us would be much appreciated.  Regards,  Jerry")*

Thanks for your quick reply!

That has allowed me to load the full order, unfortunately it somehow destroys the reference to the current user which I have stored as a global property using $this-&gt;user = JFactory::getUser(). I had stored both a reference to the user and the user id itself using $this-&gt;account_no = (int)$this-&gt;user-&gt;get('id');,but they both seem to be reset, which is strange as I am casting the user id to an int. I have no idea how the user Id is getting destroyed before loadFullOrder is even called, do you know what's going on? I can't do anything without the user id ![:(](/media/kunena/emoticons/22.png ":(")

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

- **[Density5](/forum/user/6013-density5 "View Density5's Profile")**
- [![Density5's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6013.gif)](/forum/user/6013-density5 "View Density5's Profile") Topic Author
- [ Offline](/forum/user/6013-density5)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 6 months ago [\#46433](#46433) by [Density5](/forum/user/6013-density5 "View Density5's Profile")  Replied by *[Density5](/forum/user/6013-density5 "View Density5's Profile")* on topic *[Re: Urgent help needed - worldpay business plugin](/forum/4-how-to/46425-urgent-help-needed-worldpay-business-plugin#46433 "Hi, sorry to use 'urgent' in the title, but the site is supposed to go live on Monday and at the moment it is really broken.  I am doing a lot of processing to add stuff to custom database tables in a hikashop plugin in the function onAfterOrderUpdate. Using the Check payment method set to confirm payments immediately, everything worked. We started implementing Worldpay Business and found the payment plugin didn't work and you supplied us with a new one called bf&#95;rbsbusinessgateway&#95;2012-03-27. This plugin works fine with Worldpay, unfortunately my custom plugin is now broken:  When an order is confirmed at Worlpay, onAfterOrderUpdate is called but the $order parameter is empty. I added an implementation of onAfterOrderConfirm (which I saw was implemented in the payment plugin) to pass through to onAfterOrderUpdate, and now the $order parameter contains the updated order status and history, but when I call the hikashop helper loadFullOrder($order-&gt;order&#95;id) the return value is empty. I absolutely need to access the full order when payment comes back confirmed, and I cannot understand why hikashop cannot retrieve it when given a valid order Id.  Any help you can give us would be much appreciated.  Regards,  Jerry")*

Of course the answer is obvious, the user id is never set, I am confusing myself now. I can get the user id from $order-&gt;customer-&gt;user_cms_id.

Thanks for your help, I think you have saved my business today!

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

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

[](#top)
