PDA

View Full Version : Authorize.net Description Response


mshappell237278
04-19-2009, 11:38 AM
Something has recently changed about the itemDescription that is being returned from Authorize.net when an order is processed. It used to return the same exact itemDescription that is set in my Add to Cart button but for some reason it's now return the Description, price, Description, qty etc in the Description like (copied from the merchant email notification of an order):

========= ORDER INFORMATION =========
Invoice : 100014
Description : 3-Month Pass<|>99.5<|>3-Month Pass<|>1<|>1

Code from my Add to Cart button:

$ATC_itemName = "$99.50 3-Month Pass";// column binding
$ATC_itemDescription = "3-Month Pass";// column binding
$ATC_itemWeight = floatval("0");// column binding
$ATC_itemQuantity = floatval("1");// column binding
$ATC_itemPrice = floatval("99.50");// column binding

The Description Binding is correctly showing '3-Month Pass' if I add it to my page but when the order is processed it comes back from Authorize.net with more than just the Description.

Here is what's being posted to Authorize.net:

$AuthNet_itemized[0][1] = "x_description";
$AuthNet_itemized[1][1] = "".$subscriptionCart->DisplayInfo("Description") ."";

I have another site that's using the same cart setup and those merchant receipts don't show the funky string for the description value that's returned from Authorize.net but simply shows the itemDescription as defined in the Add to Cart button.

Any ideas? Thanks in advance for any insight!

Michael

Ray Borduin
04-20-2009, 08:25 AM
My best guess is that it doesn't like the dash in the description or name column?

The description it shows is the encoded line item, which should show in the details of the order.

You may want to submit a support incident and have someone help you debug it more.... try adding the binding for the authorize.net response on the page displayed after checkout. Put the "Full Request" on the page and view it in the source code.

There must be a problem with the syntax of the request. I might be able to spot it if you are able to view it and post it to this forum.

mshappell237278
04-20-2009, 10:31 AM
Thanks for the reply Ray. In my other site that's using the same code I use the dash in the itemName and itemDescription so I don't think that's it. I'll try removing it and let you know if that helps though.

I'm not sure how to put the Full Request on the page. I don't see any binding for it in the Bindings panel. Can you help?

Thanks again. I appreciate your insight.

mshappell237278
04-20-2009, 10:41 AM
Ray - I found the WAAuthNet session var and here's the output after placing an order. I've removed some of the personal info.

1::1::1::(TESTMODE) This transaction has been approved.::000000::P::0::3::3-Month Pass<|>99.5<|>3-Month Pass<|>1<|>1::107.71::CC::auth_capture::EMAILADDRESS-REMOVED::Michael::Shappell::::ADDRESS-REMOVED::CITY-REMOVED::TX::ZIP-REMOVED::US::903-555-1212::::EMAILADDRESS-REMOVED::::::::::::::::::8.2100::::::FALSE::::506E EEDC4A7F34F0189798AE3803DA20:::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::NAME-REMOVED::ADDRESS-REMOVED::CITY-REMOVED::TX::ZIP-REMOVED::US::*::05/2016::::Visa,Mastercard,Discover,Amex,Diners::::EM AILADDRESS-REMOVED::0::Discounts::0::1::EMAILADDRESS-REMOVED::Order Confirmation::Order Details::no::0::::table

Please let me know if you see anything that is screwy. Thanks again for your insight.

Michael

mshappell237278
04-20-2009, 10:46 AM
I removed the dash from the itemName and itemDescription and it Authorize.net still returned a funky Description (see partial Full Response output):

1::1::1::(TESTMODE) This transaction has been approved.::000000::P::0::100019::1 Month Pass<|>49.5<|>1 Month Pass<|>1<|>1::49.50::CC::auth_capture

Michael

Ray Borduin
04-20-2009, 10:58 AM
View the source code of the "full request" and "full response" and send them both in an update (do remove sensitive information). I still don't really have any ideas yet.

mshappell237278
04-20-2009, 11:04 AM
Sorry Ray - Please excuse my ignorance...how do I view the source code of the Full Request and Full Response? I the WAAuthnet session var = Full Response?

Thanks again.

Michael

mshappell237278
04-20-2009, 11:11 AM
I should look around before I ask stupid questions...Found the WAAuthNet_postedValues session var. See output below:

1::1::1::(TESTMODE) This transaction has been approved.::000000::P::0::100020::3-Month Pass<|>99.5<|>3-Month Pass<|>1<|>1::99.50::CC::auth_capture::mlast@email.com::Micha el::Last::::123 Main Street::Austin::DE::55555::US::512-555-1212::::mlast@email.com::::::::::::::::::0.0000::: :::FALSE::::REMOVED::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::Michael Last::123 Main Street::Austin::DE::55555::US::*::05/2014::::Visa,Mastercard,Discover,Amex,Diners::::ml ast@email.com::0::Discounts::0::1::REMOVED::Order Confirmation::Order Details::no::0::::table

x_login=REMOVED&x_tran_key=REMOVED&x_version=3.1&x_invoice_num=100020&x_test_request=TRUE&x_method=CC&x_type=AUTH_CAPTURE&x_relay_response=FALSE&x_delim_data=TRUE&x_delim_char=::&x_customer_ip=127.0.0.1&x_amount=99.50&x_description=3-Month Pass<|>99.5<|>3-Month Pass<|>1<|>1&card_name=Michael Last&card_address1=123 Main Street&card_city=Austin&card_state=DE&card_zip=55555&card_country=US&card_number=REMOVED&card_exp=05/2014&card_cvv=&card_allowed=Visa,Mastercard,Discover,Amex,Diners&card_address2=&email=mlast@email.com&cost3=0&description3=Discounts&item3=0&quantity3=1&from_email=ytsupport@sylvanmathprep.com&subject_email=Order Confirmation&subject=Order Details&dontsndmail=no&shipinfo=0&shipping=&x_tax=0.00&image_placement=table&x_card_num=REMOVED&x_exp_date=05/2014&x_email_customer=FALSE&x_merchant_email=REMOVED&x_tax_exempt=FALSE&x_first_name=Michael&x_last_name=Last&x_address=123 Main Street&x_city=Austin&x_state=DE&x_zip=55555&x_email=mlast@email.com&x_country=US&x_phone=512-555-1212&x_recurring_billing=NO&x_cust_id=mlast@email.com&x_cardholder_authentication_value=

mshappell237278
04-20-2009, 11:17 AM
I see that the description that's being posted is what's actually being returned. However, when I add the Description Binding from my cart it displays correctly as '3-Month Pass'.

Ray Borduin
04-20-2009, 11:23 AM
Please post a support incident and include your phone number. Then post back here with your incident number and I'll try to help you debug the problem. I'm confused myself, but I bet I can figure it out pretty quick and find the solution.

mshappell237278
04-20-2009, 11:32 AM
Thanks Ray! Ticket #89697