|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable com.netbilling.util.StringHash com.netbilling.direct.V3Client.Response
public static class V3Client.Response
This class defines a Response object, used to obtain the transaction response from the server. All parameters are stored as String attributes, with String values. Use the val=get(attr) method to get attributes. All currently defined parameters are made available as String constants, Response.TRANS_ID etc. Future or custom parameter names can be specified as plain Strings without upgrading the client software if necessary. For example, the following 2 statements:
String trans_id = response.get (Response.TRANS_ID);
String trans_id = response.get ("trans_id");
are functionally identical. It's a good idea to use the predefined String constants, to avoid hard-to-find errors due to misspelled parameter names.
V3Client.doTrans(com.netbilling.direct.V3Client.Request, com.netbilling.direct.V3Client.Response)
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
AUTH_CODE
"auth_code" protocol parameter. |
static java.lang.String |
AUTH_DATE
"auth_date" protocol parameter. |
static java.lang.String |
AUTH_MSG
"auth_msg" protocol parameter. |
static java.lang.String |
AVS_CODE
"avs_code" protocol parameter. |
static java.lang.String |
CVV2_CODE
"cvv2_code" protocol parameter. |
static java.lang.String |
MEMBER_ID
"member_id" protocol parameter. |
static java.lang.String |
REASON_CODE2
"reason_code2" protocol parameter. |
static java.lang.String |
RECURRING_ID
"recurring_id" protocol parameter. |
static java.lang.String |
STATUS_CODE
"status_code" protocol parameter. |
static java.lang.String |
TICKET_CODE
"ticket_code" protocol parameter. |
static java.lang.String |
TRANS_ID
"trans_id" protocol parameter. |
Constructor Summary | |
---|---|
V3Client.Response()
|
Method Summary | |
---|---|
boolean |
isSuccess()
Returns true if the transaction was successful, false otherwise |
Methods inherited from class com.netbilling.util.StringHash |
---|
get, nvl, set |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRANS_ID
public static final java.lang.String STATUS_CODE
"1" - Successful monetary transaction
"I" - Pending transaction, such as an unfunded ACH payment
"T" - Successful auth only transaction
"0" - Failed transaction. Consult "auth_msg" and "reason_code2"
"F" - Settlement failure. Not returned at authorization time
"D" - Duplicate transaction. The "trans_id" of the original transaction will be returned
Any unexpected code other than "0" and "F" should be interpreted as a successful transaction.
for a convenient true/false test.
,
Constant Field Valuespublic static final java.lang.String AUTH_MSG
public static final java.lang.String AUTH_CODE
public static final java.lang.String AVS_CODE
public static final java.lang.String CVV2_CODE
public static final java.lang.String TICKET_CODE
public static final java.lang.String REASON_CODE2
public static final java.lang.String AUTH_DATE
public static final java.lang.String MEMBER_ID
public static final java.lang.String RECURRING_ID
Constructor Detail |
---|
public V3Client.Response()
Method Detail |
---|
public boolean isSuccess()
|
Version 3.1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |