I'm using the AIM AuthorizeNet library for .NET to process AUTH_CAPTURE transactions.
The transaction goes thru OK and it appears to get some of the data I pass it - like the fact that it's an AUTH_CAPTURE and the amount, but it doesn't have any of the Customer Billing Information (Invoice, Description, Address, Phone, Email) or Additional Information (Freight, Tax) that I pass it.
Am I not doing this correctly?
Here's my code:
Dim authReq As AuthorizeNet.AuthorizationRequest
Dim post_values As New System.Collections.Specialized.NameValueCollection
post_values.Add("x_login", "xxxxx")
post_values.Add("x_tran_key", "xxxxxxxxxx")
post_values.Add("x_version", "3.1")
post_values.Add("x_delim_data", "TRUE")
post_values.Add("x_delim_char", "|")
post_values.Add("x_relay_response", "FALSE")
post_values.Add("x_type", "AUTH_CAPTURE")
post_values.Add("x_method", "CC")
post_values.Add("x_card_num", txtCreditCard.Text.Replace(" ", "").Replace("-", ""))
post_values.Add("x_card_code", txtCCV.Text)
post_values.Add("x_exp_date", txtExpDate.Text)
post_values.Add("x_amount", order.OrderTotal.ToString("0.00"))
post_values.Add("x_tax", order.SalesTax.ToString("0.00"))
post_values.Add("x_freight", order.ShippingAmount.ToString("0.00"))
post_values.Add("x_description", "Order " + order.OrderId.ToString + " for Project " + order.ProjectName)
post_values.Add("x_invoice_num", "P-" + order.ProjectId.ToString + "O-" + order.OrderId.ToString)
post_values.Add("x_address", txtBillAddr1.Text)
post_values.Add("x_city", txtBillCity.Text)
post_values.Add("x_state", txtBillState.Text)
post_values.Add("x_zip", txtBillZip.Text)
post_values.Add("x_phone", txtPhoneNumber.Text)
post_values.Add("x_cust_id", systemUser.UserId.ToString)
post_values.Add("x_email", systemUser.Email)
post_values.Add("x_customer_ip", request.UserHostAddress)
authReq = New AuthorizeNet.AuthorizationRequest(post_values)
Dim gate As New AuthorizeNet.Gateway("4kL4H8gRy", "225JNwmN52sw566f", True)
Dim resp As AuthorizeNet.IGatewayResponse = gate.Send(authReq)
I get a successful response back including TransId and AuthCode, but the email I get back (see below) doesn't have any of the extended information in it.
Here's an example of an email receipt I get back...
========= ORDER INFORMATION =========
Invoice :
Description :
Amount : 132.00 (USD)
Payment Method : Visa
Type : Authorization and Capture
============== RESULTS ==============
Response : This transaction has been approved.
Authorization Code : xxxxx
Transaction ID : xxxxxxxxx
Address Verification : Street Address: Match -- First 5 Digits of Zip: Match
==== CUSTOMER BILLING INFORMATION ===
Customer ID :
First Name :
Last Name :
Company :
Address :
City :
State/Province :
Zip/Postal Code :
Country :
Phone :
Fax :
E-Mail :
==== CUSTOMER SHIPPING INFORMATION ===
First Name :
Last Name :
Company :
Address :
City :
State/Province :
Zip/Postal Code :
Country :
======= ADDITIONAL INFORMATION ======
Tax :
Duty :
Freight :
Tax Exempt :
PO Number :
Thanks for the help,
Mike