2 replies [Last post]
gruberroland's picture
Offline
Joined: 12/23/2013
Juice: 8
Was this information Helpful?

Hi all,

I would like to add some additional data for credit card payments (transaction ID, risk results, ...) on the order detail page (admin view).
It should be either a separate tab similar to "Payments"/"Log" or part of "View"/"Payments" tab.

Is there any hook that can be used for this? It would be great if someone can point me to the right place for documentation or another payment module that already does this.

Background for this feature: I maintain the WorldPay payment module and at the moment there is no possibility to show payment references in the external WorldPay system.

Thanks in advance for your help and Merry Xmas!

Best regards

Roland

make-online-shop's picture
Offline
Joined: 01/01/2011
Juice: 514
Re: Add additional information to order admin page (/admin/store

Also interested !

gruberroland's picture
Offline
Joined: 12/23/2013
Juice: 8
Re: Re: Add additional information to order admin page (/admin/s

Found it, simple menu hook:

function uc_worldpay_menu() {
  $items['admin/store/orders/%uc_order/worldpay'] = array(
    'title' => 'WorldPay',
    'page callback' => 'uc_worldpay_log',
    'page arguments' => array(3),
    'access arguments' => array('view all orders'),
    'type' => MENU_LOCAL_TASK,
    'weight' => 7,
  );
 
  return $items;
}

In this case the function uc_worldpay_log($order) will return the content.