Package eu.ccvlab.mapi.core.payment
Class PaymentResult
- java.lang.Object
-
- eu.ccvlab.mapi.core.Result
-
- eu.ccvlab.mapi.core.payment.PaymentResult
-
public class PaymentResult extends Result
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
acquirerId
Unique code identifying the acquirer (or processor if applicable)private java.lang.String
actionCode
Authorisation information or internal error codes.private Money
amount
Amount of the paymentprivate java.lang.String
answerCode
Answer code of the paymentprivate java.lang.String
approvalCode
Contains the code that is issued by the Acquirer to identify this transaction.private java.lang.String
authorisationType
Authorisation type of the payment (Online/Offline)private PaymentCard
card
Card information of the paymentprivate java.lang.String
cardHolderAuthentication
Used authentication method of the transaction.private java.lang.String
eReceiptUrl
Url to the e-receipt for the PhonePOS solutionprivate java.lang.String
merchantId
MerchantId of the paymentprivate java.lang.String
paymentSTAN
This shows the System Trace Audit Number which uniquely identifies the transactionprivate java.lang.String
receiptNumber
Authorisation informationprivate java.lang.String
requestId
Issued by the POS to identify a specific transactionprivate java.lang.String
returnCode
Authorisation information or internal error codesprivate java.lang.String
timestamp
Date and time of the transaction as registered on the processing hostprivate java.lang.String
token
private java.lang.String
trxReferenceNumber
private java.lang.String
workstationId
Used to identify a specific POS-
Fields inherited from class eu.ccvlab.mapi.core.Result
cardCircuits, cashbackPossible, elmeVersionInfo, errorCode, errorText, merchantReferenceNumber, oamServerApplications, openPreAuthorisations, passwordCheck, passwordLevel, paymentAuthenticationDetails, reconciliationResponse, requestTypes, serialNumber, state, terminalConfiguration, terminalId, trackingToken, transactionDeclineInformation, transactionOverview
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PaymentResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
amount(java.math.BigDecimal value, java.util.Currency currency)
private static PaymentResult
buildIt(PaymentResultConvertible response)
static PaymentResult
failure(PaymentResultConvertible response)
static PaymentResult
failure(ResultState state)
static PaymentResult
failure(java.lang.String errorCode, java.lang.String errorText)
java.lang.String
getAcquirerId()
java.lang.String
getActionCode()
Money
getAmount()
java.lang.String
getAnswerCode()
java.lang.String
getApprovalCode()
java.lang.String
getAuthorisationType()
PaymentCard
getCard()
java.lang.String
getCardHolderAuthentication()
java.lang.String
getMerchantId()
java.lang.String
getPaymentSTAN()
java.lang.String
getReceiptNumber()
java.lang.String
getRequestId()
java.lang.String
getReturnCode()
java.lang.String
getTimestamp()
java.lang.String
getToken()
java.lang.String
getTrxReferenceNumber()
java.lang.String
getWorkstationId()
static PaymentResult
previousPaymentFailure(PaymentResultConvertible response)
static PaymentResult
previousPaymentSuccess(PaymentResultConvertible response)
static PaymentResult
success(PaymentResultConvertible response)
-
Methods inherited from class eu.ccvlab.mapi.core.Result
resultState
-
-
-
-
Field Detail
-
paymentSTAN
private java.lang.String paymentSTAN
This shows the System Trace Audit Number which uniquely identifies the transaction
-
amount
private Money amount
Amount of the payment
-
timestamp
private java.lang.String timestamp
Date and time of the transaction as registered on the processing host
-
acquirerId
private java.lang.String acquirerId
Unique code identifying the acquirer (or processor if applicable)
-
requestId
private java.lang.String requestId
Issued by the POS to identify a specific transaction
-
card
private PaymentCard card
Card information of the payment
-
receiptNumber
private java.lang.String receiptNumber
Authorisation information
-
merchantId
private java.lang.String merchantId
MerchantId of the payment
-
cardHolderAuthentication
private java.lang.String cardHolderAuthentication
Used authentication method of the transaction. Possible values: PIN, Signature, NoAuth
-
authorisationType
private java.lang.String authorisationType
Authorisation type of the payment (Online/Offline)
-
approvalCode
private java.lang.String approvalCode
Contains the code that is issued by the Acquirer to identify this transaction. The ApprovalCode is also printed on the receipt behind the text: Auth. Code:
-
actionCode
private java.lang.String actionCode
Authorisation information or internal error codes. Equal to returnCode
-
returnCode
private java.lang.String returnCode
Authorisation information or internal error codes
-
answerCode
private java.lang.String answerCode
Answer code of the payment
-
workstationId
private java.lang.String workstationId
Used to identify a specific POS
-
trxReferenceNumber
private java.lang.String trxReferenceNumber
-
token
private java.lang.String token
-
eReceiptUrl
private java.lang.String eReceiptUrl
Url to the e-receipt for the PhonePOS solution
-
-
Method Detail
-
amount
public void amount(java.math.BigDecimal value, java.util.Currency currency)
-
failure
public static PaymentResult failure(PaymentResultConvertible response)
-
failure
public static PaymentResult failure(ResultState state)
-
failure
public static PaymentResult failure(java.lang.String errorCode, java.lang.String errorText)
-
previousPaymentFailure
public static PaymentResult previousPaymentFailure(PaymentResultConvertible response)
-
previousPaymentSuccess
public static PaymentResult previousPaymentSuccess(PaymentResultConvertible response)
-
success
public static PaymentResult success(PaymentResultConvertible response)
-
buildIt
private static PaymentResult buildIt(PaymentResultConvertible response)
-
getPaymentSTAN
public java.lang.String getPaymentSTAN()
-
getAmount
public Money getAmount()
-
getTimestamp
public java.lang.String getTimestamp()
-
getAcquirerId
public java.lang.String getAcquirerId()
-
getRequestId
public java.lang.String getRequestId()
-
getCard
public PaymentCard getCard()
-
getReceiptNumber
public java.lang.String getReceiptNumber()
-
getMerchantId
public java.lang.String getMerchantId()
-
getCardHolderAuthentication
public java.lang.String getCardHolderAuthentication()
-
getAuthorisationType
public java.lang.String getAuthorisationType()
-
getApprovalCode
public java.lang.String getApprovalCode()
-
getActionCode
public java.lang.String getActionCode()
-
getReturnCode
public java.lang.String getReturnCode()
-
getAnswerCode
public java.lang.String getAnswerCode()
-
getWorkstationId
public java.lang.String getWorkstationId()
-
getTrxReferenceNumber
public java.lang.String getTrxReferenceNumber()
-
getToken
public java.lang.String getToken()
-
-