com.indus.toolkit.authorizenet
Class CCResponseHolder

java.lang.Object
  |
  +--com.indus.toolkit.authorizenet.CCResponseHolder

public class CCResponseHolder
extends java.lang.Object

This class holds the reponse returned from authorize.net.


Constructor Summary
CCResponseHolder(java.lang.String responseString)
           
 
Method Summary
 java.lang.String getAuthCode()
          Fetches a 6 digit approval code
 java.lang.String getAvsCode()
          Fetches the code for Address verification.
 java.lang.String getCVV2Code()
          CVV Code is used for extra security
 java.lang.String getResponseCode()
          Fetches the respond code from the transaction
 java.lang.String getResponseReasonCode()
          Fetches the reason code for the transaction
 java.lang.String getResponseReasonText()
          Fetches the reason text for the transaction
 java.lang.String getResponseSubCode()
          Returns the response subcode.
 java.lang.String getTransID()
          Returns transID
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCResponseHolder

public CCResponseHolder(java.lang.String responseString)
Method Detail

getAuthCode

public java.lang.String getAuthCode()
Fetches a 6 digit approval code

getAvsCode

public java.lang.String getAvsCode()
Fetches the code for Address verification.
Returns:
Indicates the result of Address Verification System (AVS) checks.
  • A = Address (Street) matches, ZIP does not
  • E = AVS error
  • N = No Match on Address (Street) or ZIP
  • P = AVS not applicable for this transaction
  • R = Retry – System unavailable or timed out
  • S = Service not supported by issuer
  • U = Address information is unavailable
  • W = 9 digit ZIP matches, Address (Street) does not
  • X = Exact AVS Match
  • Y = Address (Street) and 5 digit ZIP match
  • Z = 5 digit ZIP matches, Address (Street) does not

  • getCVV2Code

    public java.lang.String getCVV2Code()
    CVV Code is used for extra security
    Returns:
    only) Indicates the results of CVV2 verification:
  • M = Match
  • N = No Match
  • P = Not Processed
  • S = Should have been present
  • U = Issuer unable to process request
  • E = Error

  • getResponseCode

    public java.lang.String getResponseCode()
    Fetches the respond code from the transaction
    Returns:
    Returns a response code. It can be:
  • 1 - Approved
  • 2 - Declined
  • 3 - Error

  • getResponseReasonCode

    public java.lang.String getResponseReasonCode()
    Fetches the reason code for the transaction
    Returns:
    Returns a code representing more details about the result of the transaction

    getResponseReasonText

    public java.lang.String getResponseReasonText()
    Fetches the reason text for the transaction
    Returns:
    Brief description of result, which corresponds with the Response Reason Code.

    getResponseSubCode

    public java.lang.String getResponseSubCode()
    Returns the response subcode. This is an internal value used by Authorize.Net

    getTransID

    public java.lang.String getTransID()
    Returns transID
    Returns:
    This number identifies the transaction in the system, and can be used to submit a modification of this transaction at a later time (such as voiding the transaction, or capturing an Auth Only transaction).

    toString

    public java.lang.String toString()
    Overrides:
    toString in class java.lang.Object