- Posts: 2
- Thank you received: 0
Transaction ID
- Paul
- Topic Author
- Offline
- New Member
-
Less
More
7 years 9 months ago - 7 years 9 months ago #100772
by Paul
Transaction ID was created by Paul
Hi there.
Could you please help me clarify something?
I created a recurring payment plugin based on the os_authnet one. I had to make some changes in the core files also, so the new payment type is included everywhere. My payment processor is expecting some unique id when the data is sent to them, eg like an invoice number. From what I can see, Membership PRO does not create an invoice or unique id for the transaction till after data is sent to the payment processor. Is this correct? Or if not, where can I grab this value so I can use it in the the data that I am sending to the payment processor?
How does the system then know the payment was successful when data returns to the callback url from the payment processor? I mean, what value is used to lookup the correct transaction? Also, on recurring transactions, there has to be a way for the system to lookup which payment is being renewed. Will the system them use the transaction id supplied by the payment processor, and what is used for an invoice number?
Could you please clarify this?
Thanks!
Could you please help me clarify something?
I created a recurring payment plugin based on the os_authnet one. I had to make some changes in the core files also, so the new payment type is included everywhere. My payment processor is expecting some unique id when the data is sent to them, eg like an invoice number. From what I can see, Membership PRO does not create an invoice or unique id for the transaction till after data is sent to the payment processor. Is this correct? Or if not, where can I grab this value so I can use it in the the data that I am sending to the payment processor?
How does the system then know the payment was successful when data returns to the callback url from the payment processor? I mean, what value is used to lookup the correct transaction? Also, on recurring transactions, there has to be a way for the system to lookup which payment is being renewed. Will the system them use the transaction id supplied by the payment processor, and what is used for an invoice number?
Could you please clarify this?
Thanks!
Last edit: 7 years 9 months ago by Paul. Reason: Changed the icon
Please Log in or Create an account to join the conversation.
- Paul
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
7 years 9 months ago #100774
by Paul
Replied by Paul on topic Transaction ID
I'll attempt to answer part of my own question. When I do a data dump of the $row variable inside processRecurringPayment function, I can see there is a $row->transaction_id which generates a random number like: QF1LL5N7A0YZHRWL before the data is sent to the payment processor. I don't see any invoice numbers though? Where do I get the invoice number from, or is this only generated AFTER the payment was successful?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 9 months ago #100776
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Transaction ID
Hello Paul
You can use $row->id . It is ID of the subscription record and is unique for each subscription.
Don't use transaction_id, it will be replaced with transaction_id of returned by the payment gateway for the payment later
For invoice_number, it is an sequence number and only be generated after payment completed
Regards,
Tuan
You can use $row->id . It is ID of the subscription record and is unique for each subscription.
Don't use transaction_id, it will be replaced with transaction_id of returned by the payment gateway for the payment later
For invoice_number, it is an sequence number and only be generated after payment completed
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2025 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.