public abstract class TransactionResult
extends java.lang.Object
implements android.os.Parcelable
ITransactionDoneListener
.
Example:
ITransaction
transaction = Transaction.getInstance(context);ITransactionDoneListener
transactionListener = newITransactionDoneListener
() { @Override
public void onTransactionDone(TransactionResult
result) { if (result.getStatus() ==TransactionStatus
.TXN_STATUS_TXN_APPROVED) {Log
.i(TAG, "Transaction successful" + ", amount: " + result.getAuthorizedAmount() + ", payment mean used: " + result.getEffectivePaymentMean()); // Handle result } else {Log
.e(TAG, "Transaction failed, error code:" + result.getStatus()); } } }; transaction.registerTransactionDoneListener(transactionListener);
Modifier and Type | Class and Description |
---|---|
static class |
TransactionResult.Builder
Builder
(internal usage).
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<TransactionResult> |
CREATOR |
Constructor and Description |
---|
TransactionResult() |
Modifier and Type | Method and Description |
---|---|
static TransactionResult.Builder |
builder()
Builder.
|
static TransactionResult |
create(TransactionStatus status) |
static TransactionResult |
create(TransactionStatus status,
java.lang.Integer paymentMean) |
abstract java.lang.String |
getAccountId()
Account ID.
|
abstract java.lang.String |
getAcquirerCode()
(not yet implemented)
This identifier is defined at national level to recognize the acquirer of the transaction
(see AIIC , bit 32 of ISO8583).
|
abstract byte[] |
getAcquirerToken()
Acquirer token.
|
abstract java.lang.String |
getActionCode()
Code assigned by the bank describing the reason of the non-acceptance of the processed
transaction (see bit 39 in ISO8583); "00" for approved transaction.
|
abstract java.lang.String |
getAdditionalInformation()
(not yet implemented)
Additionnal Information (free).
|
abstract java.math.BigDecimal |
getAmount()
Requested Amount is the transaction amount for goods and services without additional fees
(does not include cash back amount or other fees, such as tips, donation, ...).
|
abstract java.lang.String |
getApprovalCode()
Approval code as defined in bit 38 ISO8583.
|
abstract java.math.BigDecimal |
getAuthorizedAmount()
Authorized amount is the amount paid by the customer (can be different from the requested
amount since it includes other fees such as tip, donation...).
|
abstract java.lang.Integer |
getCardBrand()
(not yet implemented)
AMEX/VISA/MasterCard...
|
abstract java.lang.Integer |
getCardType()
Debit / credit / EBT / Loyalty...
|
abstract java.math.BigDecimal |
getCashAmount()
Cash Tendered Amount.
|
abstract java.math.BigDecimal |
getCashbackAmount()
Cash back Amount.
|
abstract java.lang.Long |
getCurrency()
Currency Code (Iso4217).
|
abstract java.lang.String |
getCustomerId()
Customer ID.
|
abstract java.lang.Integer |
getCustomerStatus()
Customer Status.
|
abstract java.math.BigDecimal |
getDonationAmount()
Donation Amount.
|
abstract java.lang.Integer |
getEffectivePaymentMean()
Card technology used :
Contactless Swipe Smart Card QR Code Custom Technologies ... |
abstract java.lang.Integer |
getEmvAtc()
EMV ATC.
|
java.lang.String |
getEmvCardAid()
EMV Card Application Identifier.
|
abstract byte[] |
getEmvCvmResults()
EMV CVM Results.
|
abstract java.lang.Integer |
getEmvPanSequenceNumber()
EMV PAN Sequence Number.
|
abstract byte[] |
getEmvTsi()
EMV TSI.
|
abstract byte[] |
getEmvTvr()
EMV TVR.
|
abstract java.lang.String |
getExpirationDate()
ASCII.
|
abstract java.lang.String |
getInvoiceId()
Sale reference identifier.
|
abstract java.lang.String |
getIssuerIdentificationNumber()
Issuer Identification Number.
|
abstract java.lang.String |
getMaskedPan()
PAN truncated with last 4 digits in clear (eg.
|
abstract java.lang.String |
getMerchantId()
(not yet implemented)
Merchant Identifier.
|
abstract java.lang.Integer |
getMotoType()
MOTO type for manual input.
|
abstract java.lang.String |
getNgoId()
NGO (Non-Governmental Organization) identifier.
|
abstract java.math.BigDecimal |
getOtherFeesAmount()
Other Fees Amount.
|
abstract java.lang.String |
getProductCodeId()
Product code id
|
abstract java.lang.String |
getRetrievalReferenceNumber()
Optional, original authorization request message identifier.
|
abstract java.lang.String |
getStan()
System Trace Audit Number assigned to the transaction (see bit 11 ISO8583).
|
abstract TransactionStatus |
getStatus()
Transaction request Status.
|
abstract java.math.BigDecimal |
getSurchargeAmount()
Surcharge amount added to the payment amount and defined according to the used card brand.
|
abstract java.lang.String |
getTerminalId()
(not yet implemented)
Terminal Identification.
|
abstract java.lang.String |
getTimeStamp()
(not yet implemented)
Date/time (14 bytes : yyyymmddhhmmss).
|
abstract java.math.BigDecimal |
getTipAmount()
Tip Amount.
|
java.math.BigDecimal |
getTotalAmount()
Total amount paid by customer (including tip, donation, etc...).
|
abstract java.lang.String |
getTransactionId()
Transaction Identifier.
|
abstract UsedApplication |
getUsedApplication()
Informations about the payment application used for transaction.
|
java.lang.Boolean |
isOnlineTransaction()
(not yet implemented)
Authorization Type: Online / Offline.
|
public static final android.os.Parcelable.Creator<TransactionResult> CREATOR
public abstract TransactionStatus getStatus()
@Nullable public abstract java.lang.Long getCurrency()
@Nullable public abstract java.math.BigDecimal getAuthorizedAmount()
@Nullable public java.math.BigDecimal getTotalAmount()
@Nullable public abstract java.lang.Integer getEffectivePaymentMean()
PaymentMeans for predefined values
@Nullable public abstract java.lang.String getTransactionId()
@Nullable public abstract java.lang.String getInvoiceId()
@Nullable public abstract java.lang.String getActionCode()
@Nullable public abstract java.lang.Integer getCardType()
CardTypes for predefined values
@Nullable public abstract java.lang.String getProductCodeId()
@Nullable public java.lang.Boolean isOnlineTransaction()
@Nullable public abstract java.lang.Integer getCardBrand()
for predefined values
@Nullable public abstract java.lang.String getAcquirerCode()
@Nullable public abstract java.lang.String getAdditionalInformation()
@Nullable public abstract java.lang.String getTimeStamp()
@Nullable public abstract java.lang.String getStan()
@Nullable public abstract java.lang.String getMaskedPan()
@Nullable public abstract java.lang.String getRetrievalReferenceNumber()
@Nullable public abstract byte[] getAcquirerToken()
@Nullable public abstract java.lang.String getExpirationDate()
4 bytes : YYMM for Swipe and Manual Entry.
6 bytes : YYMMDD for Contact and ContactLess.
@Nullable public abstract java.lang.String getTerminalId()
@Nullable public abstract java.lang.String getMerchantId()
@Nullable public abstract java.math.BigDecimal getCashbackAmount()
@Nullable public abstract java.math.BigDecimal getTipAmount()
@Nullable public abstract java.math.BigDecimal getDonationAmount()
@Nullable public abstract java.math.BigDecimal getOtherFeesAmount()
@Nullable public abstract java.lang.String getNgoId()
@Nullable public abstract java.lang.String getIssuerIdentificationNumber()
@Nullable public abstract java.lang.String getApprovalCode()
@Nullable public abstract java.math.BigDecimal getAmount()
@Nullable public abstract java.math.BigDecimal getSurchargeAmount()
@Nullable public abstract UsedApplication getUsedApplication()
@Nullable public abstract java.math.BigDecimal getCashAmount()
@Nullable public java.lang.String getEmvCardAid()
@Nullable public abstract java.lang.Integer getEmvPanSequenceNumber()
@Nullable public abstract java.lang.Integer getEmvAtc()
@Nullable public abstract byte[] getEmvTvr()
@Nullable public abstract byte[] getEmvTsi()
@Nullable public abstract byte[] getEmvCvmResults()
@Nullable public abstract java.lang.Integer getMotoType()
MotoType
,
PaymentMeans.MANUAL_ENTRY
@Nullable public abstract java.lang.String getCustomerId()
@Nullable public abstract java.lang.String getAccountId()
@Nullable public abstract java.lang.Integer getCustomerStatus()
public static TransactionResult create(TransactionStatus status, java.lang.Integer paymentMean)
public static TransactionResult create(TransactionStatus status)
public static TransactionResult.Builder builder()