Questions about Payment Form extension

Only numbers in Transaction ID

  • Jozef Illes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #146124 by Jozef Illes
Only numbers in Transaction ID was created by Jozef Illes
hi,

i want only numbers in Transaction ID, it is possible ? I'm looking for it, but unsuccessfully

thank you

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

More
2 years 7 months ago #146126 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only numbers in Transaction ID
Hello

Normally, the Transaction ID is returned by payment gateway and could not be changed (unless you use offline payment gateway)

So the main question is what payment method you are using?

Tuan

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

  • Jozef Illes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #146225 by Jozef Illes
Replied by Jozef Illes on topic Only numbers in Transaction ID
yes, this is an offline payment - where I need to write only numbers in the variable symbol

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

More
2 years 7 months ago #146226 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only numbers in Transaction ID
Currently, we use Joomla core method for generating that random Transaction ID, and the list of characters are abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789

So if you want to change it, you will need to customize the code in the file components/com_pmform/Model/Payment.php

This is the line of code which you will have to change to meet your need:
Code:
$data['transaction_id'] = strtoupper(UserHelper::genRandomPassword());

Regards,

Tuan

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

  • Jozef Illes
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 7 months ago #146258 by Jozef Illes
Replied by Jozef Illes on topic Only numbers in Transaction ID
You mean :

/www_root/components/com_eventbooking/model/payment.php

Sorry, but i don`t see this row/code in this file.

P.S.: i don`t see folder com_pmform

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

More
2 years 7 months ago #146266 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Only numbers in Transaction ID
You posted your question on Forum Form forum, so I thought you are asking about Payment Form. For Events Booking, you need to look at the file:

components/com_eventbooking/model/register.php

Search for the code from there and modify it:
Code:
$data['transaction_id'] = strtoupper(JUserHelper::genRandomPassword());

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc