Jump to content


WorldPay / External Order Id Generator

  • Please log in to reply
No replies to this topic

#1   cinevate

  • Members
  • 3 posts
  • Real Name:Dan W

Posted 02 September 2010 - 19:51

I am attempting to pass the osCommerce orders_id through WorldPay for inclusion in the merchant confirmation email. I have attempted to achieve this using the External Order Id Generator add-on.

I have installed the add-on however am unsure how to reference the orders_id variable in order to have it appear in my WorldPay merchant confirmation email. I have successfully passed custom variables through the merchant email before however am unsure in this case as it relates to the orders_id variable and the External Order Id Generator add-on.

Also when I choose 'Cheque/Money Order' as my payment type it successfully writes to the new orders_id table in the database, however when I choose 'WorldPay' as my payment option the order does not write to the database.

Here is my code in the worldpay.php file

tep_draw_hidden_field('MC_ordersId', $_SESSION['orders_id']) .

Any help would be greatly appreciated.

Edited by cinevate, 02 September 2010 - 19:58.