Class coreresponse

Inheritance diagram for com.payments.core.CoreResponse:

com.payments.core.CoreSaleResponse

Public Member Functions

CoreResponse ()
AvsResponseCode getAVSResponseCode ()
String getApprovalCode ()
BigDecimal getAuthorizedAmount ()
CvvResponseCode getCVVResponseCode ()
String getCurrency ()
String getUniqueRef ()
String getDateTime ()
String getDescription ()
String getCode ()
String getCardType ()
void setCardType (String cardType)
void setAvsResponseCode (AvsResponseCode avsResponseCode)
void setApprovalCode (String approvalCode)
void setAuthorizedAmount (BigDecimal authorizedAmount)
void setCvvResponseCode (CvvResponseCode cvvResponseCode)
void setCurrency (String currency)
void setUniqueRef (String uniqueRef)
void setDateTime (String dateTime)
void setDescription (String description)
void setCode (String code)
String getCardHolderName ()
void setCardHolderName (String cardHolderName)
String getCardNumber ()
void setCardNumber (String cardNumber)
String getExpiryDate ()
void setExpiryDate (String expiryDate)
String getCardReferenceNumber ()
void setCardReferenceNumber (String cardReferenceNumber)
String getSecureCardMerchantRef ()
void setSecureCardMerchantRef (String secureCardMerchantRef)
String getBankResponseCode ()
void setBankResponseCode (String bankResponseCode)
Public Member Functions inherited from com.payments.core.common.ResponseJson
String getAsJsonObject ()

Detailed Description

This class represents transaction response object.

Constructor & Destructor Documentation

CoreResponse()

    • com.payments.core.CoreResponse.CoreResponse
    • (
    • )

  • inline

Member Function Documentation

getApprovalCode()

    • String com.payments.core.CoreResponse.getApprovalCode
    • (
    • )

  • inline

This String represents approval code for each transaction.

Returns

approvalCode

getAuthorizedAmount()

    • BigDecimal com.payments.core.CoreResponse.getAuthorizedAmount
    • (
    • )

  • inline

This BigDecimal represents amount set for each transaction.

Returns

authorizedAmount

getAVSResponseCode()

  • inline

This AvsResponseCode represents AVS response code.

Returns

aVSResponseCode

getBankResponseCode()

    • String com.payments.core.CoreResponse.getBankResponseCode
    • (
    • )

  • inline

getCardHolderName()

    • String com.payments.core.CoreResponse.getCardHolderName
    • (
    • )

  • inline

This String represents card holder name.

Returns

cardHolderName

getCardNumber()

    • String com.payments.core.CoreResponse.getCardNumber
    • (
    • )

  • inline

This String represents card number.

Returns

cardNumber

getCardReferenceNumber()

    • String com.payments.core.CoreResponse.getCardReferenceNumber
    • (
    • )

  • inline

getCardType()

    • String com.payments.core.CoreResponse.getCardType
    • (
    • )

  • inline

This String represents card type.

Returns

cardType

getCode()

    • String com.payments.core.CoreResponse.getCode
    • (
    • )

  • inline

This String represents code for each transaction.

For the transaction to be approved, response code which is returned in onSaleReponse must be set A.

Please make sure to check the response code which can be one of the following:

A - Approval (Transaction was approved)

D - Declined (Transaction was declined)

C - Pick Up

R - Referral

Returns

code

getCurrency()

    • String com.payments.core.CoreResponse.getCurrency
    • (
    • )

  • inline

This String represents currency for example: Dollar,Euro.

Returns

currency

getCVVResponseCode()

  • inline

This CvvResponseCode represents cvv response code 3 digit number found on the back of credit/debit card.

Returns

cVVResponseCode

getDateTime()

    • String com.payments.core.CoreResponse.getDateTime
    • (
    • )

  • inline

This String represents the date and time when transaction has been made.

Returns

dateTime

getDescription()

    • String com.payments.core.CoreResponse.getDescription
    • (
    • )

  • inline

This String represents description if transaction has been approved or not declined.

Returns

description

getExpiryDate()

    • String com.payments.core.CoreResponse.getExpiryDate
    • (
    • )

  • inline

This String represents expiry date of the card.

Returns

expiryDate

getSecureCardMerchantRef()

    • String com.payments.core.CoreResponse.getSecureCardMerchantRef
    • (
    • )

  • inline

This String represents merchant reference of the card.

Returns

secureCardMerchantRef

getUniqueRef()

    • String com.payments.core.CoreResponse.getUniqueRef
    • (
    • )

  • inline

This String represents unique reference assigned to each transaction.

Returns

uniqueRef

setApprovalCode()

    • void com.payments.core.CoreResponse.setApprovalCode
    • (
    • String
    • approvalCode
    • )

  • inline

Sets the value of approvalCode property.

setAuthorizedAmount()

    • void com.payments.core.CoreResponse.setAuthorizedAmount
    • (
    • BigDecimal
    • authorizedAmount
    • )

  • inline

Sets the value of authorizedAmount property.

setAvsResponseCode()

    • void com.payments.core.CoreResponse.setAvsResponseCode
    • (
    • AvsResponseCode
    • avsResponseCode
    • )

  • inline

Sets the value of avsResponseCode property.

setBankResponseCode()

    • void com.payments.core.CoreResponse.setBankResponseCode
    • (
    • String
    • bankResponseCode
    • )

  • inline

setCardHolderName()

    • void com.payments.core.CoreResponse.setCardHolderName
    • (
    • String
    • cardHolderName
    • )

  • inline

Sets the value of cardholderName property.

setCardNumber()

    • void com.payments.core.CoreResponse.setCardNumber
    • (
    • String
    • cardNumber
    • )

  • inline

Sets the value of cardNumber property.

setCardReferenceNumber()

    • void com.payments.core.CoreResponse.setCardReferenceNumber
    • (
    • String
    • cardReferenceNumber
    • )

  • inline

setCardType()

    • void com.payments.core.CoreResponse.setCardType
    • (
    • String
    • cardType
    • )

  • inline

Sets the value of cardType property.

setCode()

    • void com.payments.core.CoreResponse.setCode
    • (
    • String
    • code
    • )

  • inline

Sets the value of code property.

setCurrency()

    • void com.payments.core.CoreResponse.setCurrency
    • (
    • String
    • currency
    • )

  • inline

Sets the value of currency property.

setCvvResponseCode()

    • void com.payments.core.CoreResponse.setCvvResponseCode
    • (
    • CvvResponseCode
    • cvvResponseCode
    • )

  • inline

Sets the value of cvvResponseCode property.

setDateTime()

    • void com.payments.core.CoreResponse.setDateTime
    • (
    • String
    • dateTime
    • )

  • inline

Sets the value of dateTime property.

setDescription()

    • void com.payments.core.CoreResponse.setDescription
    • (
    • String
    • description
    • )

  • inline

Sets the value of description property.

setExpiryDate()

    • void com.payments.core.CoreResponse.setExpiryDate
    • (
    • String
    • expiryDate
    • )

  • inline

Sets the value of expiryDate property.

setSecureCardMerchantRef()

    • void com.payments.core.CoreResponse.setSecureCardMerchantRef
    • (
    • String
    • secureCardMerchantRef
    • )

  • inline

Sets the value of secure card merchant reference property.

setUniqueRef()

    • void com.payments.core.CoreResponse.setUniqueRef
    • (
    • String
    • uniqueRef
    • )

  • inline

Sets the value of uniqueRef property.