Transaction ID too long

  • Chris Dahlberg
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #83867 by Chris Dahlberg
Transaction ID too long was created by Chris Dahlberg
Hi,

Is there anyway to make the transaction ID shorter. In payment form that we were previously using it is only 7or 8 characters long which is fine to use for a banking ref. In Membership Pro it is way to long to use as the payment ref when doing bank transfer.

Thanks for your time.

Chris

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

More
7 years 10 months ago #83931 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Transaction ID too long
Hi Chris

You can edit the code to make it shorter. Please :

1. Open the file components/com_osmembership/model/register.php

2. Find this line of code:
Code:
$data['transaction_id'] = strtoupper(JUserHelper::genRandomPassword(16));

3. Change 16 to 8

After that, it will work as expected

Tuan

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

  • Chris Dahlberg
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #83995 by Chris Dahlberg
Replied by Chris Dahlberg on topic Transaction ID too long
Hi Tuan,

Thanks for that, made the alteration to the register.php file as above but still getting 16 characters.
Is there a second file that can be overriding this?

Thanks,
Chris

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

More
7 years 10 months ago #84008 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Transaction ID too long
That should be the only field. You subscribe for the plan in the frontend and receiving that transaction id, correct?

Tuan

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

  • Chris Dahlberg
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #84010 by Chris Dahlberg
Replied by Chris Dahlberg on topic Transaction ID too long
Hi,

Yes adjusted the above file in the backend to 8. Then subscribe to plan in frontend and transaction ID comes in email and it stays at 16 characters. I also tried changing it to (()) like in the payment form component which sends 8 characters and no difference.

Chris

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

More
7 years 10 months ago #84023 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Transaction ID too long
Hi Chris

Maybe you should submit a support ticket sending us super admin account of your site and the link to subscription form. I am going to check to see why it happens and get it sorted for you

BTW, what payment method you are using?

Tuan

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

  • Chris Dahlberg
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 10 months ago #84043 by Chris Dahlberg
Replied by Chris Dahlberg on topic Transaction ID too long
Will do, and offline payment at this time.

Chris

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