Questions about Payment Form extension

Transaction ID numbers only

  • Adela Sasinkova
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 2 months ago #131876 by Adela Sasinkova
Transaction ID numbers only was created by Adela Sasinkova
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.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 2 months 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