KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jcommercesql > gateway > authorizenet > AuthorizeNetCodes


1 package com.jcommercesql.gateway.authorizenet;
2
3 /**
4  * This file is part of JCommerceSQL Authorize.net Gateway
5  *
6  * <b>Copyright 2003 by Richard Roehl. All Rights Reserved.</b>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21  *
22  */

23
24 public class AuthorizeNetCodes {
25
26   public static String JavaDoc INTERNALVERSION="3.1";
27   public static String JavaDoc VERSION="3.1";
28
29   public static int RESP_FIELD_TRANSACTIONID=7;
30   public static int RESP_FIELD_AMOUNT=10;
31   public static int RESP_FIELD_MD5HASH=38;
32
33   public static String JavaDoc REQ_FIELD_VERSION="x_Version";
34   public static String JavaDoc REQ_FIELD_LOGIN="x_Login";
35   public static String JavaDoc REQ_FIELD_TRAN_KEY="x_Tran_Key";
36   public static String JavaDoc REQ_FIELD_AMOUNT="x_Amount";
37   public static String JavaDoc REQ_FIELD_CARD_NUM="x_Card_Num";
38   public static String JavaDoc REQ_FIELD_EXP_DATE="x_Exp_Date";
39   public static String JavaDoc REQ_FIELD_TYPE="x_Type";
40   public static String JavaDoc REQ_FIELD_TEST_REQUEST="x_Test_Request";
41   public static String JavaDoc REQ_FIELD_DELIM_DATA="x_Delim_Data";
42   public static String JavaDoc REQ_FIELD_DELIM_CHAR="x_Delim_Char";
43   public static String JavaDoc REQ_FIELD_ENCAP_CHAR="x_Encap+Char";
44
45
46   public static String JavaDoc RESP_CODE_APPROVED="1";
47   public static String JavaDoc RESP_CODE_DECLINED="2";
48   public static String JavaDoc RESP_CODE_ERROR="3";
49
50   public static String JavaDoc getVersion() {
51     return VERSION;
52   }
53
54   public static String JavaDoc getInternalVersion() {
55     return INTERNALVERSION;
56   }
57 }
58
Popular Tags