Forums

SOLVED Authorize.net Response Help

gabedaly 08 Aug, 2011
I have a payment form on my site and it is setup to email the user and myself the details after a successful payment but I really need to grab the Transaction Id number that Authorize.net provides after a successful payment was made. Is there any way to get this Trans ID automatically and include it in the emails?
Thanks, Gabe
Max_admin 13 Aug, 2011
Hi Gabe,

as per the Help tab. all the authorize.net transaction data are saved under this variable after the clal is made to the gateway:

$form->data['_PLUGINS_']['authorize_net']


The transaction id for example:


$form->data['_PLUGINS_']['authorize_net']['transaction_id']


so in your email:
<?php echo $form->data['_PLUGINS_']['authorize_net']['transaction_id']; ?>

or
{_PLUGINS_.authorize_net.transaction_id}


Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
gabedaly 16 Aug, 2011
Thank you again Max. You are a very big help to us all.
gabedaly 18 Aug, 2011
OK well I thought everything was fine but...
Here is what it looks like on the thank you page and email:

Your payment transaction id is <?php echo $form->data0; ?> (testmode so the trans id is 0)

It is pulling the response data but it is also showing the code.
I tried both versions of Max's code and only this one seems to work but still shows as above:

<?php echo $form->data{_PLUGINS_.authorize_net.transaction_id}; ?>
gabedaly 19 Aug, 2011
OK so I figured out how to get rid of the code from showing on the thank you page. If I insert:

Your payment transaction id is:
{_PLUGINS_.authorize_net.transaction_id}
.

I get this on the thank you page:

Your payment transaction id is 0.
This topic is locked and no more replies can be posted.