- Posts: 3
- Thank you received: 0
Questions about Payment Form extension
Only numbers in Transaction ID
- Jozef Illes
- Topic Author
- Offline
- New Member
Less
More
3 years 3 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 3 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
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
Less
More
- Posts: 3
- Thank you received: 0
3 years 3 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.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 3 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:
Regards,
Tuan
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
Less
More
- Posts: 3
- Thank you received: 0
3 years 3 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
/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.
- Tuan Pham Ngoc
- Offline
- Administrator
3 years 3 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:
Regards,
Tuan
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
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.