How to make the transaction ID subsequent

  • ralphK
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 5 months ago #12478 by ralphK
Hi,

When my clients register via Event Bookings, their confirmation e-mail states a transaction ID. This ID is ad-random, while I want to have a subsequent serie. In that case I can use these id's for my financial book keeping as well.
Can you tell me where I can make these transaction ID's subsequent in a logic sequal like year-number combination?

Ralph

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #12480 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to make the transaction ID subsequent
Hi

1. If you are using online payment method like Paypal, Authorize.net, Eway..., the Transaction ID is returned by the Payment Gateway and we cannot change it .

2. If you are using offline payment plugin, the extension is will generate a unique-random string for transaction ID. If you want to change that, you will need to edit code of the component. Looks at the file components/com_eventbooking/models/register.php, find the code below (several instances) :
Code:
$data['transaction_id'] = strtoupper(JUserHelper::genRandomPassword());

You need to change that code to generate transaction id in the format you want !

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc