CF_AuthorizeNet
Integrate the AuthorizeNet payment gateway into your ColdFusion pages. Supports AuthorizeNet version 3.x.
SYNTAX:
<cf_AuthorizeNet
type="AUTH_CAPTURE"
amount="25.50"
card_num="1234567890123456"
exp_date="0203"
login="merchant_login"
password="merchant_password"
variable="AuthorizeNet">
<cfoutput>
<cfif AuthorizeNet.ResponseCode eq 1>
Success!
<cfelseif AuthorizeNet.ResponseCode eq 2>
Declined. Reason: #AuthorizeNet.Response_Reason_Text#
<cfelseif AuthorizeNet.ResponseCode eq 3>
Network error.
</cfif>
</cfoutput>
ATTRIBUTES:
Type
Required. Transaction type: "AUTH_CAPTURE", "AUTH_ONLY", "VOID", etc.
Amount
Required. Dollar amount of the transaction to be processed.
Card_Num
Required. Credit card number. Omit any non-numerical characters, including symbols and spaces.
Exp_Date
Required. Credit card's expiration date in 'mmyy' format. For example, a credit card expiring in March of 2007 would have an Exp_Date of '0307'.
Login
Required. Merchant's AuthorizeNet login ID.
Password
Required. Merchant's AuthorizeNet login password.
Variable
Required. Name of structure returned by CF_AuthorizeNet tag. The following values are returned:
- struct_name.response_code: (1 = approved, 2 = declined, 3 = error)
- struct_name.response_subcode
- struct_name.response_reason_code
- struct_name.response_reason_text
- struct_name.response_auth_code
- struct_name.response_avs_code
- struct_name.response_trans_id
Invoice
Optional. Your invoice number to be recorded with the transaction.
Delim_Character
Optional. Delimiter to be used. Default is a comma (,) character.
Address
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. First address line of cardholder's mailing address. Used by AVS (Address Verification System), if enabled.
Auth_Code
Optional. Your authorization code to be recorded with the transaction.
AVS_Filter
Optional. eg. "tbd".
ABA_Code
Required for all eCheck transactions - otherwise optional.
Acct_Num
Required for all eCheck transactions - otherwise optional. Bank account number.
Acct_Type
Optional. Bank account type: "checking" or "savings". Default is "Checking".
Bank_Name
Required for all eCheck transactions - otherwise optional. Bank name.
City
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's city.
Company
Optional. Cardholder's company.
Country
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's country.
Description
Optional. Transaction description.
Email
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's e-mail address.
Email_Customer
Optional. Send transaction confirmation to cardholder's e-mail address? Acceptable values are "True" and "False".
Fax
Optional. Cardholder's fax number.
First_Name
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's first name.
Last_Name
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's last name.
Method
Optional. Payment method. Acceptable values are "CC" and "ECHECK". Default is "CC".
Phone
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's telephone number.
State
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's state.
Zip
Required for all eCheck transactions and Wells Fargo SecureSource merchants - otherwise optional. Cardholder's zip code. Used by AVS (Address Verification System), if enabled.
Test_Request
Optional. Overrides "Test Mode" setting in AuthorizeNet control panel, allowing test transactions after Test Mode is disabled. May not be used to enable live transactions when Test Mode is enabled in AuthorizeNet control panel. Default is "False".
Trans_ID
Optional. Transaction ID number. Required when TYPE = "VOID", "PRIOR_AUTH_CAPTURE", etc.
Consult AuthorizeNet's Developer's Guide for additional instructions.
|