Forums / Templates, Stylesheets, Page Layout / Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Locked

Started by jeffmic on 30 Oct 2006, 4:50 PM · Views: 6,295

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
30 Oct 2006, 4:50 PM
#1
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Can the Authorize.net (AIM) Tranaction ID and Auth Code be inserted into the mechant email when it returns from auth only?

This is really important and a time saver to my business.

thanks,
Jeff Michaels

Jeff Michaels,
pres of Musical Creations Ltd.

30 Oct 2006, 6:26 PM
#2
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Just an added note:

I made a test order. I paid by credit card via Authorize.net (AIM).
I can see the Transaction ID and Auth Code in Admin/Customers/Orders at the bottom.

I went to the Authorizenet table in mySQL and the were no records...... ?!?

With that data still showing in the Admin/Customers/Orders page, where can this data be stored in mySQL.

Jeff

Jeff Michaels,
pres of Musical Creations Ltd.

30 Oct 2006, 7:09 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

The Admin "orders" page pulls that info from the orders_status_history table.

To add it to your admin-confirmation-emails, I would expect that this (for auth_net_aim) should work in theory (I have not tested this):
/includes/classes/order.php
approx line 971:```
// send additional emails
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];

global $payment_modules;
if ($payment_modules->auth_code || $payment_modules->transaction_id) {
$pmt_details = 'AuthCode: ' . $payment_modules->auth_code . ' TransID: ' . $payment_modules->transaction_id . "\n\n";
$email_order = $pmt_details . $email_order;
$html_msg['EMAIL_TEXT_HEADER'] = nl2br($pmt_details) . $html_msg['EMAIL_TEXT_HEADER'];
}

zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
$email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra');
}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Oct 2006, 7:15 PM
#4
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

thanks Doc,

I'm going to test this after I finish lunch and post my results.

Jeff

Jeff Michaels,
pres of Musical Creations Ltd.

30 Oct 2006, 8:23 PM
#5
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Sorry, it didn't work....

This is no Auth Code or Transaction ID from Authorizenet showing on this merchant confirmation email after inserting your code, but it's in the Admin as I listed above

thanks,
Jeff

Order Confirmation from Musical Creations Ltd.

Jxxxxxxxxxxx

Thanks for shopping with us today!
The following are the details of your order.

Order Number: 29
Date Ordered: Monday 30 October, 2006
Detailed Invoice:
https://xxxxxxxxxxxxxx

Products

1 x (FASHION) - FASHION BEATS CD = $14.95

Sub-Total: $14.95
US Postal Service (Priority Mail - Delivery Confirmation (2-3 days)): $5.50
NC TAX 7.0%: $1.05
Total: $21.50

Delivery Address

Jxxxxxxxxxx

Billing Address

Jxxxxxxxxx

Payment Method

Credit Card

Visa


This email address was given to us by you or by one of our customers. If you
feel that you have received this email in error, please send an email to
[email protected]


Copyright (c) 2000-2006 xxxxxxxxxx

Office Use Only:
From:
Email:
Login Name: xxxxxxxx
Login Email: xxxxxxxxx
Telephone: xxxxxxxx
IP Address: xxxxxxxxxx
Host Address: xxxxxxxxx
Date and Time: xxxxxxxxx

Jeff Michaels,
pres of Musical Creations Ltd.

30 Oct 2006, 10:32 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

hmmmm ....

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Oct 2006, 10:40 PM
#7
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

is there any reason why the authorizenet table doesn't contain ANY of the info of the 2 orders I did today (as sample orders to make sure everything is going through properly). The Auth Code and Transaction ID show up in the Customer's order data and the Admin orders data though... So where ARE they stored?

Things that make you go hmmmm..

Jeff

Jeff Michaels,
pres of Musical Creations Ltd.

31 Oct 2006, 1:12 AM
#8
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Is there any other solution to making this code operational for me?
I'd love to get this to appear on our emails before I launch our new website on Wed morning. I had a ton of coffee brewing and no one to drink it.....

thanks ever so much,

Jeff

Jeff Michaels,
pres of Musical Creations Ltd.

31 Oct 2006, 1:18 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Have you made sure curl is complied on your server and working on your site?

Your site is set to secure on checkout?

Have you uninstalled and reinstalled AuthorizeNet AIM and set to production?

You are using the correct The API Login ID and Transaction Key?

Have you tried to recreate these?

Have you tried a manual charge to ensure AuthorizeNet is in fact setup correctly?

Have you tried to generate a new Transaction Key and made sure to cut & paste it vs type it?

Have you tried Production vs Test?

Have you checked the Configuration ... Credit Cards ... to make sure what credit cards your site is setup to accept?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

31 Oct 2006, 1:21 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

umm ... scratch all that ...

/me hunts down some stronger coffee ... :lamo:

Just realized you are past that point and trying to gather additional info ... don't ask ... long day ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

31 Oct 2006, 1:24 AM
#11
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Linda,

I just want to make sure you understand first, Authorize.net is working perfectly and charging my transactions. That is not the problem.
I just can't get Dr Byte's code to make the auth code and transaction ID to appear in our merchant emails so we don't have to look it up for every order to capture funds. We only use Auth Only on purpose.

My other question is why nothing appears in the authorizenet table in mySQL.

Please confirm that is why you are asking the previous questions and I'll fill in all the blanks for ya

thanks,
Jeff

NEVER MIND.... I just got your second email

Jeff Michaels,
pres of Musical Creations Ltd.

31 Oct 2006, 1:35 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

I think I have a method to cheat ... :eek:

Hey if it works that is all that matters ... :smile:

Could you drop me a PM please? :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

31 Oct 2006, 5:46 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

jeffmic:

is there any reason why the authorizenet table doesn't contain ANY of the info of the 2 orders I did today (as sample orders to make sure everything is going through properly). The Auth Code and Transaction ID show up in the Customer's order data and the Admin orders data though... So where ARE they stored?

The authorizenet table is only populated if you have the switch to "Enable Database Storage" turned on in your authorize.net payment module settings in ZC admin.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Oct 2006, 6:19 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Authorize.net (AIM) need Tranaction ID and Auth Code on merchant emails

Let's try this instead of what I gave you earlier:```
if ($GLOBALS[$_SESSION['payment']]->auth_code || $GLOBALS[$_SESSION['payment']]->transaction_id) {
$pmt_details = 'AuthCode: ' . $GLOBALS[$_SESSION['payment']]->auth_code . ' TransID: ' . $GLOBALS[$_SESSION['payment']]->transaction_id . "\n\n";
$email_order = $pmt_details . $email_order;
$html_msg['EMAIL_TEXT_HEADER'] = nl2br($pmt_details) . $html_msg['EMAIL_TEXT_HEADER'];
}

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.