<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<!---
The following lines will send the coldFusion ePay module all
the values that should be submitted to the gateway.
You should manually change the value of CARDNUM to your
own source key provided by USA ePay. As for the other
variables, they should be assigned to your form variables
collected from the user. For example:
EXPDATE = #form.expireDate#
if your form has a value for the card expiration date called expireDate.
Remember that this is only a partial list of variables the
gateway can handle. You should go over the list in the module
usaepay-1.cfm or you can find the list and explanation for the
variables at http://www.usaepay.com. Click on the Developer's Center
and then click on the gateway API link.
--->
<cfmodule template="usaepay-1.cfm"
queryname="q_auth"
KEY="PUT_YOUR_SOURCE_KEY_HERE"
CARDNUM="PUT_CC_NUMBER_HERE"
EXPDATE="EXPIRE_DATE_HERE"
AMOUNT="1.0"
CustID="42124"
INVOICE="2134"
DESCRIPTION=""
CVV=""
EMAIL=""
EMAILCUSTOMER="FALSE"
CUSTNAME="John Doe"
AVSSTREET="1234 Main"
AVSZIP="21345"
CLIENTIP="123.123.123.123"
TESTREQUEST="False">
<!--- Here you should include your own script
for processing gateway responses. ---->
<cfif #q_auth.UMstatus# is "Approved">
<h1>Transaction Approved</h1>
<cfelse>
<h1>Transaction Declined</h1>
</cfif>
<cfoutput query="q_auth">
<b>UMversion</b>: (#UMversion#) <br>
<b>UMstatus</b>: (#UMstatus#) <br>
<b>UMauthCode</b>: (#UMauthCode#) <br>
<b>UMrefNum</b>: (#UMrefNum#) <br>
<b>UMavsResult</b>: (#UMavsResult#) <br>
<b>UMavsResultCode</b>: (#UMavsResultCode#) <br>
<b>UMcvv2Result</b>: (#UMcvv2Result#) <br>
<b>UMcvv2ResultCode</b>: (#UMcvv2ResultCode#) <br>
<b>UMresult</b>: (#UMresult#) <br>
<b>UMerror</b>: (#UMerror#) <br>
<b>UMfiller</b>: (#UMfiller#) <br>
</cfoutput>
</body>
</html>
| Parameter | Description |
| QueryName | (defaults to q_auth.) |
| key | Source Key generated by the Merchant Console at www.usaepay.com. |
| cardnum | Credit Card Number with no spaces or dashes. |
| expdate | Expiration Date in the form of MMYY with no spaces or punctuation. |
| amount | Charge amount without $. |
| custid | Unique customer number. |
| invoice | Unique ticket, invoice or order number. 10 digits. |
| description | Charge description (optional). |
| cvv | CVV2 code (optional). |
| email | Customer Email address (optional). |
| emailcustomer | Send a customer receipt. Note, this will override the source setting. (defaults to no). |
| custname | Name as it appears on card. |
| avsstreet | Street address for use in avs check. |
| avszip | Zipcode for avs check. |
| clientip | IP Address of client browser, used for fraud checks. (optional) |
| TestRequest | Uses testmode. If set to 1 then the transaction will be simulated but not actually processed. (optional, defaults to 0) |
| Field | Description |
| x_response_code | full result: Approved, Declined, Error |
| x_auth_code | Authorization Code |
| x_trans_id | Reference Number |
| x_avs_code | The Result of the AVS check. |
| x_cvv_code | The result of the CVV2 check. |
| x_response_reason_text | Error if transaction is not approved. |
1.2 → 1.3
Fixed problem with the dependency of the result variables from the gateway.
04/04/04
1.0 → 1.2
Added support for VBV and MSC as well as other fields (tax, po…).
10/15/03