× Questions about Payment Form extension

Transaction ID numbers only

  • Ing. Karel Buchta, Ph.D.
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
2 weeks 17 hours ago #131876 by Ing. Karel Buchta, Ph.D.
Transaction ID numbers only was created by Ing. Karel Buchta, Ph.D.
Good day,
I need transaction_id to be generated only as a numeric and not an alphanumeric.
This is because the customer can use it as a variable symbol when making an offline payment. The bank only requires a number. It would also be better for exchanging information in the payment gateway plugin we are preparing.
I would like to put this as a requirement for choice in the next PMF issue. Now I would need to indicate in which file this is solved and what to change there.
Thank you very much for your help

Karel

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

More
2 weeks 16 hours ago #131880 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Transaction ID numbers only
Hi Karel

The file is components/com_pmform/Model/Payment.php

You need to find this line of code:

$data = strtoupper(JUserHelper::genRandomPassword());

And try to generate code to replace strtoupper(JUserHelper::genRandomPassword()) with something contains the value you want

Tuan

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

Moderators: Tuan Pham Ngoc