Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Transaction ID


Guest

Recommended Posts

Posted

How do I reference the transaction ID of a checkout transaction? I need this value to be unique since it will be used later on by the payment gateway as reference.

Posted

*bump*

 

I created an internal transaction ID number -- I've appended the system time to the $customer_id variable:

function process_button() {

 global $order, $currencies, $customer_id, $reference;



 $my_currency = 'PHP';

 $reference = $customer_id . '-' . date('Ymdhis');



 $process_button_string = tep_draw_hidden_field('payee', $order->customer['ema

                          tep_draw_hidden_field('mid', MODULE_PAYMENT_PAYPLUS_

                          tep_draw_hidden_field('amt', number_format(($order->

                          tep_draw_hidden_field('ref', $reference) .

                          tep_draw_hidden_field('return', tep_href_link(FILENA

                          tep_draw_hidden_field('cancel_return', tep_href_link



 return $process_button_string;

}

How do I carry over the $reference number to the e-mail confirmation?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...