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
Thanks, Gabe
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:
The transaction id for example:
so in your email:
or
Regards,
Max
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
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:
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}; ?>
This topic is locked and no more replies can be posted.
