public abstract class TransactionInputData
extends java.lang.Object
implements android.os.Parcelable
Example of a transaction request: Transaction debit using ContactChip 3€
ITransaction
transaction = Transaction.getInstance(context);TransactionInputData
inputData =TransactionInputData
.builder() .setTransactionType(TransactionTypes
.SALE) .setPaymentMeans(Arrays
.asList(PaymentMeans
.CONTACT_CHIP)) .setAmount(newBigDecimal
("3.0")) .setTipAmount(newBigDecimal
("1.00")) .setSurchargeAmount(newBigDecimal
("0.45")) .build();TransactionRequest
request = transaction.start(inputData);
Modifier and Type | Class and Description |
---|---|
static class |
TransactionInputData.Builder
Builder.
|
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<TransactionInputData> |
CREATOR |
Constructor and Description |
---|
TransactionInputData() |
Modifier and Type | Method and Description |
---|---|
static TransactionInputData.Builder |
builder() |
abstract java.lang.Integer |
getAcquirerTransactionType()
Acquirer transaction type.
|
abstract java.math.BigDecimal |
getAmount()
Amount is the requested 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.lang.String |
getCardholderName()
Card Holder Name.
|
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.String |
getCashierId()
Clerk/Cashier identifier.
|
abstract java.lang.Long |
getCurrency()
Currency Code (Iso4217).
|
abstract java.math.BigDecimal |
getDonationAmount()
Donation Amount.
|
abstract java.lang.String |
getInvoiceId()
Sale reference 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 |
getPaymentApplication()
Payment application id to be used for explicit selection.
|
abstract java.util.List<java.lang.Integer> |
getPaymentMeans()
Technologies to be used for the payment.
|
abstract java.lang.String |
getProductCodeId() |
abstract java.lang.String |
getRetrievalReferenceNumber()
Original authorization request message identifier to be refunded RRN (retrieval reference
number) ISO field 37.
|
abstract java.lang.String |
getStan()
STAN related to the previous transaction if available.
|
abstract java.math.BigDecimal |
getSurchargeAmount()
Surcharge amount added to the payment amount and defined according to the used card brand.
|
abstract java.math.BigDecimal |
getTipAmount()
Tip Amount.
|
abstract java.lang.String |
getTransactionId()
Transaction Identifier.
|
abstract java.lang.Integer |
getTransactionType()
Field specifying the transaction type (sale, refund, void...).
|
java.lang.Boolean |
isForceAutho()
Require an acquirer authorization if true.
|
public static final android.os.Parcelable.Creator<TransactionInputData> CREATOR
public abstract java.lang.Integer getTransactionType()
TransactionTypes for predefined values
@Nullable public abstract java.math.BigDecimal getAmount()
@Nullable public abstract java.lang.Long getCurrency()
public abstract java.util.List<java.lang.Integer> getPaymentMeans()
PaymentMeans for predefined values
@Nullable public abstract java.lang.String getPaymentApplication()
@Nullable public abstract java.lang.String getInvoiceId()
@Nullable public abstract java.lang.String getStan()
@Nullable public abstract java.lang.String getTransactionId()
@Nullable public abstract java.lang.String getProductCodeId()
@Nullable public abstract java.lang.Integer getCardType()
CardTypes for predefined values
public java.lang.Boolean isForceAutho()
@Nullable public abstract java.lang.String getCashierId()
@Nullable public abstract java.lang.String getApprovalCode()
@Nullable public abstract java.lang.String getRetrievalReferenceNumber()
@Nullable public abstract java.lang.Integer getAcquirerTransactionType()
@Nullable public abstract java.lang.String getCardholderName()
@Nullable public abstract java.math.BigDecimal getTipAmount()
@Nullable public abstract java.math.BigDecimal getCashbackAmount()
@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.math.BigDecimal getSurchargeAmount()
@Nullable public abstract java.math.BigDecimal getCashAmount()
@Nullable public abstract java.lang.Integer getMotoType()
MotoType
,
PaymentMeans.MANUAL_ENTRY
public static TransactionInputData.Builder builder()