Class TransactionResponse
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAcct()Gets the acct parameter.Gets the ACH Status/getAci()Gets the Authorization Characteristics Indicator.Gets the addlMsgs.Gets the cardholder statusGets the status.Gets the status.getAmt()Gets the amt parameter.Gets the association response code.Gets the AuthCode.Gets the avsaddr.Gets the avsZip.Gets the status.Gets the batchid.Gets the firstname parameter.Gets the lastname parameter.Gets the cardsecure parameter.Gets the card type.Gets the Credit Card Transaction POS Data.Gets the Credit Card Transaction Id.Gets the response if the credit card was updatedGets the Correlation Id parameterGets the custRef.Gets the cvv2match.Gets the inquiry DateToSettle.Gets the duplicate parameterGets the secure token id.Gets the end time.Gets the expdate parameter.Gets the extended response message.Gets the feeAmt parameterGets the hostCode.getIavs()Gets the iavs.Gets the Magtek Response.Gets the original amount.Gets the orignal pnref for the primary transaction.Gets the Original transaction result for which inquiry transaction is performed.getParId()Gets the Payment Account Reference.Gets the payment advice code.Gets the Payment Type parameterGets the pending reason parameterGets the secure token.getPnref()Gets the pnref number(Reference Id).getPPRef()Gets the PPref parameterGets the procAvs.Gets the ProcCardSecure.Gets the PROCCVV2.Gets the response message.Gets the respText.intGets the result.getRrn()Gets the Retrieve Reference transaction.Gets the secure token.Gets the secure token id.Gets the settleDate.getStan()Gets the System Trace Audit number.Gets the startTime.Gets the status.Gets Trace ID.Gets the transaction id for Braintree.Gets the transaction state.Gets the transtime parameter.getTxId()Gets the Transaction ID (Card on File)getType()Gets the transaction typeGets the Authorization Characteristics Indicator.protected voidMethods inherited from class paypal.payflow.BaseResponseDataObject
setParams
-
Constructor Details
-
TransactionResponse
protected TransactionResponse()
-
-
Method Details
-
getResult
public int getResult()Gets the result.- Returns:
- - String
Maps to Payflow Parameter: RESULT
-
getPPRef
Gets the PPref parameter- Returns:
- - String
Maps to Payflow Parameter: PPREF
-
getPnref
Gets the pnref number(Reference Id).- Returns:
- - String
Maps to Payflow Parameter: PNREF
-
getRespMsg
Gets the response message.- Returns:
- - String
Maps to Payflow Parameter: RESPMSG
-
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
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
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
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
Gets the acct parameter.Obtain the last 4-digits of the credit card number
- Returns:
- - String
Maps to Payflow Parameter: ACCT
-
getExpDate
Gets the expdate parameter.Obtain the expiration date of the credit card used.
- Returns:
- - String
Maps to Payflow Parameter: EXPDATE
-
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
Gets the lastname parameter.Obtain the last name of the card holder.
- Returns:
- - String
Maps to Payflow Parameter: BILLTOLASTNAME
-
getBillToFirstName
Gets the firstname parameter.Obtain the first name of the card holder.
- Returns:
- - String
Maps to Payflow Parameter: BILLTOFIRSTNAME
-
getTransTime
Gets the transtime parameter.Obtain the transaction date and time.
- Returns:
- - String
Maps to Payflow Parameter: TRANSTIME
-
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
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
Gets the Original transaction result for which inquiry transaction is performed.- Returns:
- - String
Maps to Payflow Parameter: ORIGRESULT
-
getOrigPnref
Gets the orignal pnref for the primary transaction.- Returns:
- - String
Maps to Payflow Parameter: ORIGPNREF
-
getTransState
Gets the transaction state.- Returns:
- - String
Maps to Payflow Parameter: TRANSSTATE
-
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
Gets the startTime.- Returns:
- - String
Maps to Payflow Parameter: STARTTIME
-
getEndTime
Gets the end time.- Returns:
- - String
Maps to Payflow Parameter: ENDTIME
-
getDuplicate
Gets the duplicate parameterIndicates 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
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
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
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
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
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
Gets the ProcCardSecure.VPAS/SPA response from the processor. Value obtained when Payflow Verbosity parameter = MEDIUM
- Returns:
- - String
Maps to Payflow Parameter: PROCCARDSECURE
-
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
Gets the hostCode.- Returns:
- - String
Maps to Payflow Parameter: HOSTCODE
-
getSettleDate
Gets the settleDate.- Returns:
- - String
Maps to Payflow Parameter: SETTLEDATE
-
getStatus
Gets the status.- Returns:
- - String
Maps to Payflow Parameter: STATUS
-
getBalAmt
Gets the status.- Returns:
- - String
Maps to Payflow Parameter: BALAMT
-
getAmexId
Gets the status.- Returns:
- - String
Maps to Payflow Parameter: AMEXID
-
getAmexPosData
Gets the status.- Returns:
- - String
Maps to Payflow Parameter: AMEXPOSDATA
-
getCardType
Gets the card type.- Returns:
- - String
Maps to Payflow Parameter: CARDTYPE
-
getOrigAmt
Gets the original amount.- Returns:
- - String
Maps to Payflow Parameter: ORIGAMT
-
getSecureToken
Gets the secure token.- Returns:
- - String
Maps to Payflow Parameter: SECURETOKEN
-
getEmailMatch
Gets the secure token id.- Returns:
- - String
Maps to Payflow Parameter: EMAILMATCH
-
getPhoneMatch
Gets the secure token.- Returns:
- - String
Maps to Payflow Parameter: PHONEMATCH
-
getExtRspMsg
Gets the extended response message.- Returns:
- - String
Maps to Payflow Parameter: EXTRSPMSG
-
getSecureTokenId
Gets the secure token id.- Returns:
- - String
Maps to Payflow Parameter: SECURETOKENID
-
getPaymentAdviceCode
Gets the payment advice code.- Returns:
- - String
Maps to Payflow Parameter: PAYMENTADVICECODE
-
getAssociationResponseCode
Gets the association response code.- Returns:
- - String
Maps to Payflow Parameter: ASSOCIATIONRESPCODE
-
getMagTResponse
Gets the Magtek Response.- Returns:
- - String
Maps to Payflow Parameter: MAGTRESPONSE
-
getTraceId
Gets Trace ID.- Returns:
- - String
Maps to Payflow Parameter: TRACEID
-
getAchStatus
Gets the ACH Status/- Returns:
- - String
Maps to Payflow Parameter: ACHSTATUS
-
getTxId
Gets the Transaction ID (Card on File)- Returns:
- - String
Maps to Payflow Parameter: TXID
-
getType
Gets the transaction type- Returns:
- - String
Maps to Payflow Parameter: TYPE
-
getAffluent
Gets the cardholder status- Returns:
- - String
Maps to Payflow Parameter: AFFLUENT
-
getCcUpdated
Gets the response if the credit card was updated- Returns:
- - String
Maps to Payflow Parameter: CCUPDATED
-
getTransactionId
Gets the transaction id for Braintree.- Returns:
- - String
Maps to Payflow Parameter: TRANSACTIONID
-
getRrn
Gets the Retrieve Reference transaction.- Returns:
- - String
Maps to Payflow Parameter: RRN
-
getStan
Gets the System Trace Audit number.- Returns:
- - String
Maps to Payflow Parameter: STAN
-
getAci
Gets the Authorization Characteristics Indicator.- Returns:
- - String
Maps to Payflow Parameter: ACI
-
getValidationCode
Gets the Authorization Characteristics Indicator. The transaction identifier associated with the transaction being settled.- Returns:
- - String
Maps to Payflow Parameter: VALIDATIONCODE
-
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
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
Gets the Payment Account Reference. Value returned by some processors for the Payment Account Reference.- Returns:
- - String
Maps to Payflow Parameter: PARID
-
setParams
- Overrides:
setParamsin classBaseResponseDataObject
-
getFeeAmt
Gets the feeAmt parameter- Returns:
- - String
Maps to Payflow Parameter: FEEAMT
-
getPendingReason
Gets the pending reason parameter- Returns:
- - String
Maps to Payflow Parameter: PENDINGREASON
-
getPaymentType
Gets the Payment Type parameter- Returns:
- - String
Maps to Payflow Parameter: PAYMENTTYPE
-
getCorrelationId
Gets the Correlation Id parameter- Returns:
- - String
Maps to Payflow Parameter: CORRELATIONID
-