Forums / General Questions / Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

Locked

Views: 1,781

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
31 Jul 2009, 9:53 PM
#1
nextlevelmotoring avatar

nextlevelmotoring

New Zenner

Join Date:
Jan 2005
Posts:
45
Plugin Contributions:
0

Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

I just upgraded from a very old 1.2 to 1.3.8a and everything seems to be working great, except a wierd occurance with Aurhorize.net (AIM)....

When a customer pays with a credit card the following information is entered into the publicly viewable order comments:

Credit Card payment. AUTH: 625145. TransID: 2542587412. (I've changed the numbers but everything else is the same)

As a result, the customer can see these numbers when viewing the order history through the website.

Can anyone tell me how to turn this off?

Thanks!

Ryan

31 Jul 2009, 10:00 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

Is there something wrong with the customer seeing the authorization code applied to their transaction?
Keep in mind that you normally see that information on a credit card receipt you get when you swipe your card in a store for a retail purchase. Aren't customers entitled to see that information?

.
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.

3 Aug 2009, 6:06 PM
#3
nextlevelmotoring avatar

nextlevelmotoring

New Zenner

Join Date:
Jan 2005
Posts:
45
Plugin Contributions:
0

Re: Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

DrByte:

Is there something wrong with the customer seeing the authorization code applied to their transaction?
Keep in mind that you normally see that information on a credit card receipt you get when you swipe your card in a store for a retail purchase. Aren't customers entitled to see that information?

Yes, there is! When there's an AVS error and a customer has held funds and they request to remove the authorization, the only thing we need to provide to have that authorization removed is the authorization number.

Someone who knows that they're doing can have any charge removed (even active charges prior to settlement) with that number after placing an order by calling the toll-free number on the back of their card.

3 Aug 2009, 6:15 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

So you're saying you don't want that disclosed ever? Or only if there were no warnings with the authorization?

.
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.

3 Aug 2009, 6:21 PM
#5
nextlevelmotoring avatar

nextlevelmotoring

New Zenner

Join Date:
Jan 2005
Posts:
45
Plugin Contributions:
0

Re: Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

DrByte:

So you're saying you don't want that disclosed ever? Or only if there were no warnings with the authorization?

Yeah, I just think it would be better to not put that as an order comment - I can't think of a single benefit, it's just unnecessary info that can confuse the customer and offer a way for unscrupulous peoples to try to do things they shouldn't be doing.

3 Aug 2009, 6:29 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

If you wish to exclude that, simply remove or comment-out the following from near the bottom of /includes/classes/order.php: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']; }and the same with the after_process() function in /includes/modules/payment/authorizenet_aim.php:```
$sql = "insert into " . TABLE_ORDERS_STATUS_HISTORY . " (comments, orders_id, orders_status_id, date_added) values (:orderComments, :orderID, :orderStatus, now() )";
$sql = $db->bindVars($sql, ':orderComments', 'Credit Card payment. AUTH: ' . $this->auth_code . '. TransID: ' . $this->transaction_id . '.', 'string');
$sql = $db->bindVars($sql, ':orderID', $insert_id, 'integer');
$sql = $db->bindVars($sql, ':orderStatus', $this->order_status, 'integer');
$db->Execute($sql);

.
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.

3 Aug 2009, 6:57 PM
#7
nextlevelmotoring avatar

nextlevelmotoring

New Zenner

Join Date:
Jan 2005
Posts:
45
Plugin Contributions:
0

Re: Authorize.net (AIM) Putting AUTH: Code & TransID in order comments

Thanks so much - that's exactly what I needed!