Class TransactionResponse

java.lang.Object
paypal.payflow.BaseResponseDataObject
paypal.payflow.TransactionResponse

public final class TransactionResponse extends BaseResponseDataObject
Used for transaction response. *

TransactionResponse object is contained in the main response object Response of the transaction.

Following is the example of how to get the transaction response after the transaction. .......... // Trans is the transaction object. * ................... // Submit the transaction. Response resp = trans.SubmitTransaction(); *

if (resp != null) { // Get the Transaction Response parameters. TransactionResponse trxnResponse = resp.getTransactionResponse(); if (trxnResponse!= null) { System.out.println("RESULT = " + trxnResponse.getResult()); System.out.println("RESPMSG = " + trxnResponse.getRespMsg()); System.out.println("AUTHCODE = " + trxnResponse.getAuthCode()); System.out.println("AVSADDR = " + trxnResponse.getAVSAddr()); System.out.println("AVSZIP = " + trxnResponse.getAVSZip()); System.out.println("IAVS = " + trxnResponse.getIAVS()); } }

  • Constructor Details

    • TransactionResponse

      protected TransactionResponse()
  • Method Details

    • getResult

      public int getResult()
      Gets the result.
      Returns:
      - String

      Maps to Payflow Parameter: RESULT

    • getPPRef

      public String getPPRef()
      Gets the PPref parameter
      Returns:
      - String

      Maps to Payflow Parameter: PPREF

    • getPnref

      public String getPnref()
      Gets the pnref number(Reference Id).
      Returns:
      - String

      Maps to Payflow Parameter: PNREF

    • getRespMsg

      public String getRespMsg()
      Gets the response message.
      Returns:
      - String

      Maps to Payflow Parameter: RESPMSG

    • getAuthCode

      public String getAuthCode()
      Gets the AuthCode. Returned for Sale, Authorization, and Voice Authorization transactions. AUTHCODE is the approval code obtained over the phone from the processing network.
      Returns:
      - String

      Maps to Payflow Parameter: AUTHCODE

    • getAvsAddr

      public String getAvsAddr()
      Gets the avsaddr. AVS address responses are for advice only. This process does not affect the outcome of the authorization.
      Returns:
      - String

      Maps to Payflow Parameter: AVSADDR

    • getAvsZip

      public String getAvsZip()
      Gets the avsZip.

      AVS ZIP code responses are for advice only. This process does not affect the outcome of the authorization.

      Returns:
      - String

      Maps to Payflow Parameter: AVSZIP

    • getCardSecure

      public String getCardSecure()
      Gets the cardsecure parameter.

      Obtained for Visa cards. CAVV validity. Y=valid, N=Not valid, X=cannot determine

      Returns:
      - String

      Maps to Payflow Parameter: CARDSECURE

    • getAcct

      public String getAcct()
      Gets the acct parameter.

      Obtain the last 4-digits of the credit card number

      Returns:
      - String

      Maps to Payflow Parameter: ACCT

    • getExpDate

      public String getExpDate()
      Gets the expdate parameter.

      Obtain the expiration date of the credit card used.

      Returns:
      - String

      Maps to Payflow Parameter: EXPDATE

    • getAmt

      public String getAmt()
      Gets the amt parameter.

      Obtain the amount of the transaction. Used to validate that the amount sent was the amount authorized.

      Returns:
      - String

      Maps to Payflow Parameter: AMT

    • getBillToLastName

      public String getBillToLastName()
      Gets the lastname parameter.

      Obtain the last name of the card holder.

      Returns:
      - String

      Maps to Payflow Parameter: BILLTOLASTNAME

    • getBillToFirstName

      public String getBillToFirstName()
      Gets the firstname parameter.

      Obtain the first name of the card holder.

      Returns:
      - String

      Maps to Payflow Parameter: BILLTOFIRSTNAME

    • getTransTime

      public String getTransTime()
      Gets the transtime parameter.

      Obtain the transaction date and time.

      Returns:
      - String

      Maps to Payflow Parameter: TRANSTIME

    • getCvv2Match

      public String getCvv2Match()
      Gets the cvv2match.

      Result of the card security code (CVV2) check. This value does not affect the outcome of the transaction.

      Returns:
      - String Value Description Y - The submitted value matches the data on file for the card. N - The submitted value does not match the data on file for the card. X - The cardholder's bank does not support this service. Maps to Payflow Parameter: CVV2MATCH
    • getIavs

      public String getIavs()
      Gets the iavs.

      International AVS address responses are for advice only. This value does not affect the outcome of the transaction. Indicates whether AVS response is international (Y), US (N), or cannot be determined (X).

      Returns:
      - String

      Maps to Payflow Parameter: IAVS

    • getOrigResult

      public String getOrigResult()
      Gets the Original transaction result for which inquiry transaction is performed.
      Returns:
      - String

      Maps to Payflow Parameter: ORIGRESULT

    • getOrigPnref

      public String getOrigPnref()
      Gets the orignal pnref for the primary transaction.
      Returns:
      - String

      Maps to Payflow Parameter: ORIGPNREF

    • getTransState

      public String getTransState()
      Gets the transaction state.
      Returns:
      - String

      Maps to Payflow Parameter: TRANSSTATE

    • getCustRef

      public String getCustRef()
      Gets the custRef.

      Merchant-defined identifier for reporting and auditing purposes. For example, you can set CUSTREF to the invoice number. You can use CUSTREF when performing Inquiry transactions. To ensure that you can always access the correct transaction when performing an Inquiry, you must provide a unique CUSTREF

      Returns:
      - String

      Maps to Payflow Parameter: CUSTREF

    • getStartTime

      public String getStartTime()
      Gets the startTime.
      Returns:
      - String

      Maps to Payflow Parameter: STARTTIME

    • getEndTime

      public String getEndTime()
      Gets the end time.
      Returns:
      - String

      Maps to Payflow Parameter: ENDTIME

    • getDuplicate

      public String getDuplicate()
      Gets the duplicate parameter

      Indicates transactions sent with duplicate identifier. If a transaction is performed with the request id that has been previously used for another transaction, Duplicate is returned as 1.

      Returns:
      - String

      Maps to Payflow Parameter: DUPLICATE

    • getDateToSettle

      public String getDateToSettle()
      Gets the inquiry DateToSettle.

      Gets the settle date of the transaction for which inquiry transaction is performed. Value available only before settlement has started Value obtained when Payflow Verbosity paramter = MEDIUM

      Returns:
      - String

      Maps to Payflow Parameter: DATE_TO_SETTLE

    • getBatchId

      public String getBatchId()
      Gets the batchid.

      Gets the batch id of the transaction for which the inquiry transaction is performed. Value available only after settlement has assigned a BatchId Value obtained when Payflow Verbosity paramter = MEDIUM

      Returns:
      - String

      Maps to Payflow Parameter: BATCHID

    • getAddlMsgs

      public String getAddlMsgs()
      Gets the addlMsgs. Additional error message that indicates that the merchant used a feature that is disabled. Value obtained when Payflow Verbosity paramter = MEDIUM
      Returns:
      - String

      Maps to Payflow Parameter: ADDLMSGS

    • getRespText

      public String getRespText()
      Gets the respText.

      Text corresponding to the response code returned by the processor. This text is not normalized by Gateway server.

      Returns:
      - String

      Maps to Payflow Parameter: RESPTEXT

    • getProcAvs

      public String getProcAvs()
      Gets the procAvs.

      AVS (Address Verification Service) response from the processor. Value obtained when Payflow Verbosity paramter = MEDIUM

      Returns:
      - String

      Maps to Payflow Parameter: PROCAVS

    • getProcCardSecure

      public String getProcCardSecure()
      Gets the ProcCardSecure.

      VPAS/SPA response from the processor. Value obtained when Payflow Verbosity parameter = MEDIUM

      Returns:
      - String

      Maps to Payflow Parameter: PROCCARDSECURE

    • getProcCVV2

      public String getProcCVV2()
      Gets the PROCCVV2.

      CVV2 (buyer authentication) response from the processor. Its a 3- or 4-digit code that is printed (not imprinted) on the back of a credit card. Used as partial assurance that the card is in the buyer's possession. Value obtained when Payflow Verbosity parameter = MEDIUM

      Returns:
      - String

      Maps to Payflow Parameter: PROCCVV2

    • getHostCode

      public String getHostCode()
      Gets the hostCode.
      Returns:
      - String

      Maps to Payflow Parameter: HOSTCODE

    • getSettleDate

      public String getSettleDate()
      Gets the settleDate.
      Returns:
      - String

      Maps to Payflow Parameter: SETTLEDATE

    • getStatus

      public String getStatus()
      Gets the status.
      Returns:
      - String

      Maps to Payflow Parameter: STATUS

    • getBalAmt

      public String getBalAmt()
      Gets the status.
      Returns:
      - String

      Maps to Payflow Parameter: BALAMT

    • getAmexId

      public String getAmexId()
      Gets the status.
      Returns:
      - String

      Maps to Payflow Parameter: AMEXID

    • getAmexPosData

      public String getAmexPosData()
      Gets the status.
      Returns:
      - String

      Maps to Payflow Parameter: AMEXPOSDATA

    • getCardType

      public String getCardType()
      Gets the card type.
      Returns:
      - String

      Maps to Payflow Parameter: CARDTYPE

    • getOrigAmt

      public String getOrigAmt()
      Gets the original amount.
      Returns:
      - String

      Maps to Payflow Parameter: ORIGAMT

    • getSecureToken

      public String getSecureToken()
      Gets the secure token.
      Returns:
      - String

      Maps to Payflow Parameter: SECURETOKEN

    • getEmailMatch

      public String getEmailMatch()
      Gets the secure token id.
      Returns:
      - String

      Maps to Payflow Parameter: EMAILMATCH

    • getPhoneMatch

      public String getPhoneMatch()
      Gets the secure token.
      Returns:
      - String

      Maps to Payflow Parameter: PHONEMATCH

    • getExtRspMsg

      public String getExtRspMsg()
      Gets the extended response message.
      Returns:
      - String

      Maps to Payflow Parameter: EXTRSPMSG

    • getSecureTokenId

      public String getSecureTokenId()
      Gets the secure token id.
      Returns:
      - String

      Maps to Payflow Parameter: SECURETOKENID

    • getPaymentAdviceCode

      public String getPaymentAdviceCode()
      Gets the payment advice code.
      Returns:
      - String

      Maps to Payflow Parameter: PAYMENTADVICECODE

    • getAssociationResponseCode

      public String getAssociationResponseCode()
      Gets the association response code.
      Returns:
      - String

      Maps to Payflow Parameter: ASSOCIATIONRESPCODE

    • getMagTResponse

      public String getMagTResponse()
      Gets the Magtek Response.
      Returns:
      - String

      Maps to Payflow Parameter: MAGTRESPONSE

    • getTraceId

      public String getTraceId()
      Gets Trace ID.
      Returns:
      - String

      Maps to Payflow Parameter: TRACEID

    • getAchStatus

      public String getAchStatus()
      Gets the ACH Status/
      Returns:
      - String

      Maps to Payflow Parameter: ACHSTATUS

    • getTxId

      public String getTxId()
      Gets the Transaction ID (Card on File)
      Returns:
      - String

      Maps to Payflow Parameter: TXID

    • getType

      public String getType()
      Gets the transaction type
      Returns:
      - String

      Maps to Payflow Parameter: TYPE

    • getAffluent

      public String getAffluent()
      Gets the cardholder status
      Returns:
      - String

      Maps to Payflow Parameter: AFFLUENT

    • getCcUpdated

      public String getCcUpdated()
      Gets the response if the credit card was updated
      Returns:
      - String

      Maps to Payflow Parameter: CCUPDATED

    • getTransactionId

      public String getTransactionId()
      Gets the transaction id for Braintree.
      Returns:
      - String

      Maps to Payflow Parameter: TRANSACTIONID

    • getRrn

      public String getRrn()
      Gets the Retrieve Reference transaction.
      Returns:
      - String

      Maps to Payflow Parameter: RRN

    • getStan

      public String getStan()
      Gets the System Trace Audit number.
      Returns:
      - String

      Maps to Payflow Parameter: STAN

    • getAci

      public String getAci()
      Gets the Authorization Characteristics Indicator.
      Returns:
      - String

      Maps to Payflow Parameter: ACI

    • getValidationCode

      public String getValidationCode()
      Gets the Authorization Characteristics Indicator. The transaction identifier associated with the transaction being settled.
      Returns:
      - String

      Maps to Payflow Parameter: VALIDATIONCODE

    • getCcTransId

      public String getCcTransId()
      Gets the Credit Card Transaction Id. Unique transaction ID returned by some processors for all credit card transactions.
      Returns:
      - String

      Maps to Payflow Parameter: CCTRANSID

    • getCcTrans_PosData

      public String getCcTrans_PosData()
      Gets the Credit Card Transaction POS Data. Value returned by some processors for all credit card transactions.
      Returns:
      - String

      Maps to Payflow Parameter: CCTRANS_POSDATA

    • getParId

      public String getParId()
      Gets the Payment Account Reference. Value returned by some processors for the Payment Account Reference.
      Returns:
      - String

      Maps to Payflow Parameter: PARID

    • setParams

      protected void setParams(Hashtable ResponseHashTable)
      Overrides:
      setParams in class BaseResponseDataObject
    • getFeeAmt

      public String getFeeAmt()
      Gets the feeAmt parameter
      Returns:
      - String

      Maps to Payflow Parameter: FEEAMT

    • getPendingReason

      public String getPendingReason()
      Gets the pending reason parameter
      Returns:
      - String

      Maps to Payflow Parameter: PENDINGREASON

    • getPaymentType

      public String getPaymentType()
      Gets the Payment Type parameter
      Returns:
      - String

      Maps to Payflow Parameter: PAYMENTTYPE

    • getCorrelationId

      public String getCorrelationId()
      Gets the Correlation Id parameter
      Returns:
      - String

      Maps to Payflow Parameter: CORRELATIONID