Home Page Customer Care Services Order Now Search Contact Us Privacy Statement ChamberGates
Order Now Web Hosting Dedicated Servers Domain Name Registration Colocation Services Reseller Opportunities Web Design
Page Location
Home Page
Support
Web Development
xAuthorize Reference

xAuthorize Reference

xAuthorize allows any program or website to be able to authorize credit cards in real-time using the Authorize.Net gateway. There is no additional charge to use this component and it is already enabled for your web site.

Properties
Address (String) [RW] - Customer's Address
Amount (String) [RW] - Transaction amount to process.
ApprovalCode (String) [R] - Transaction approval code returned by the processor.
AVSCode (String) [R] - Address Verification Code.
CardNumber (String) [RW] - Credit card account number.
City (String) [RW] - Customer City.
Company (String) [RW] - Customer company name.
Country (String) [RW] - Customer country.
CustomerID (String) [RW] - CustomerID to send to gateway and use in email confirmation.
Description (String) [RW] - Transaction description.
Email (String) [RW] - Customer email address.
ErrorCode (Integer) [R] - Error code returned by the component.
0No Error
1Component busy
2Error connecting to server
3Error reading results
4Login missing
5Invalid login
6Invalid Data - Check all fields
14Invalid processor
15Invalid URL
16Invalid transaction type
17Server Error
19One or more required fields are blank
21Error creating object
22Object error
99Unspecific error
ErrorText (String) [R] - Error code description returned by the component.
ExpDate (String) [RW] - Credit card expiration date.
Fax (String) [RW] - Customer fax number.
FirstName (String) [RW] - Customer first name.
InvoiceNumber (String) [RW] - Invoice Number.
LastName (String) [RW] - Customer last name.
Login (String) [RW] - Authorize.net login ID.
Password (String) [RW] - Authorize.net password.
Phone (String) [RW] - Customer phone number.
ResponseCode (String) [R] - Transaction response code returned by the processor. (1 = Approved, 2 = Declined, 3 = Error)
ResponseReasonCode (String) [R] - Transaction response description.
ResponseReasonText (String) [R] - Transaction response text returned by the processor.
State (String) [RW] - Customer State.
Timeout (Integer) [RW] - Returns or sets the maximum number of seconds the control will spend trying to connect before raising a connection timeout error. Defaults to 60
Zip (String) [RW] - Customer zip code.
Methods
Initialize() - Initializes the component for a new transaction. Resets all property values and communication channels. The component is initialize automatically at creation time. If multiple transactions are to be run using the same component, then the component needs to be re-initialized before processing each transaction.
Process() - Initiates transaction processing. Sends user information to the processing server and waits for a reply. The function call returns after a reply is received from the server or an error occurs.
Example
Set oProcess = Server.CreateObject("xAuthorize.Process")
oProcess.Login = "myusername"
oProcess.Password = "mypassword"
oProcess.CardNumber = "1001200230034004"
oProcess.ExpDate = "0304"
oProcess.InvoiceNumber = "6571"
oProcess.Amount = "108.00"
oProcess.Description = "Web Hosting"
oProcess.CustomerID = "EJONES"
oProcess.FirstName = "Elizabeth"
oProcess.LastName = "Jones"
oProcess.Address = "123 Elm St"
oProcess.State = "TX"
oProcess.Zip = "10001"
oProcess.Country = "US"
oProcess.Process
nCode = oProcess.ResponseCode
Response.Write oProcess.ApprovalCode
Response.Write oProcess.AVSCode
Response.Write oProcess.ErrorCode
Response.Write oProcess.ErrorText
Response.Write oProcess.ResponseReasonCode
Response.Write oProcess.ResponseReasonText
Response.Write oProcess.TransID
Set oProcess = Nothing
                  

Copyright (c) 1999-2004 ChamberGates. All Rights Reserved.