public class Merchant
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CP_VERSION |
static int |
MAX_LOGIN_LENGTH |
static int |
MAX_TRANSACTION_KEY_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
createAIMTransaction(TransactionType transactionType,
java.math.BigDecimal amount)
Creates a new AIM Transaction.
|
Transaction |
createARBTransaction(TransactionType transactionType,
Subscription subscription)
Creates a new ARB Transaction.
|
Transaction |
createCIMTransaction(TransactionType transactionType)
Creates a new CIM Transaction.
|
static Merchant |
createMerchant(Environment environment,
java.lang.String login,
java.lang.String transactionKey) |
Transaction |
createReportingTransaction(TransactionType transactionType)
Creates a new Reporting Transaction.
|
Transaction |
createSIMTransaction(TransactionType transactionType,
long fingerPrintSequence,
java.math.BigDecimal amount)
Creates a new SIM Transaction.
|
DeviceType |
getDeviceType() |
Environment |
getEnvironment()
Get the Environment that transactions will be posted against.
|
java.lang.String |
getLogin()
Get the login.
|
MarketType |
getMarketType() |
java.lang.String |
getMD5Value() |
java.lang.String |
getTransactionKey()
Get the transaction key.
|
java.lang.String |
getUserRef()
Get the UserRef value.
|
boolean |
isAllowPartialAuth()
Return true if the merchant has been enabled, via the SDK, to allow
partial AUTH transactions.
|
boolean |
isSandboxEnvironment()
Return true if the environment is a sandbox type environment.
|
Result<?> |
postTransaction(Transaction transaction)
Post a Transaction request to the payment gateway.
|
void |
setAllowPartialAuth(boolean allowPartialAuth)
Indicates if the transaction is enabled for partial authorization.
|
void |
setDeviceType(DeviceType deviceType) |
void |
setEnvironment(Environment environment)
Set the environment that transactions will be posted against.
|
void |
setMarketType(MarketType marketType) |
void |
setMD5Value(java.lang.String MD5Value) |
void |
setUserRef(java.lang.String userRef)
Set the userRef for Card Present transactions.
|
public static final java.lang.String CP_VERSION
public static final int MAX_LOGIN_LENGTH
public static final int MAX_TRANSACTION_KEY_LENGTH
public static Merchant createMerchant(Environment environment, java.lang.String login, java.lang.String transactionKey)
public java.lang.String getLogin()
public java.lang.String getTransactionKey()
public boolean isAllowPartialAuth()
public void setAllowPartialAuth(boolean allowPartialAuth)
allowPartialAuth - the allowPartialAuth to setpublic Environment getEnvironment()
public void setEnvironment(Environment environment)
environment - the environment to setpublic boolean isSandboxEnvironment()
public MarketType getMarketType()
public void setMarketType(MarketType marketType)
marketType - the marketType to setpublic DeviceType getDeviceType()
public void setDeviceType(DeviceType deviceType)
deviceType - the deviceType to setpublic java.lang.String getMD5Value()
public void setMD5Value(java.lang.String MD5Value)
MD5Value - the MD5Value to setpublic java.lang.String getUserRef()
public void setUserRef(java.lang.String userRef)
userRef - the userRef to setpublic Transaction createAIMTransaction(TransactionType transactionType, java.math.BigDecimal amount)
transactionType - amount - public Transaction createSIMTransaction(TransactionType transactionType, long fingerPrintSequence, java.math.BigDecimal amount)
transactionType - fingerPrintSequence - amount - public Transaction createARBTransaction(TransactionType transactionType, Subscription subscription)
transactionType - public Transaction createCIMTransaction(TransactionType transactionType)
transactionType - public Transaction createReportingTransaction(TransactionType transactionType)
transactionType - public Result<?> postTransaction(Transaction transaction)
transaction - Copyright © 2018. All Rights Reserved.