|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.authorize.Merchant
public class Merchant
Container to hold authentication credentials. The Merchant is also responsible for creating transactions and posting them to the gateway are performed through the Merchant.
| Field Summary | |
|---|---|
static String |
CP_VERSION
|
static int |
MAX_LOGIN_LENGTH
|
static int |
MAX_TRANSACTION_KEY_LENGTH
|
| Method Summary | |
|---|---|
Transaction |
createAIMTransaction(TransactionType transactionType,
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,
String login,
String transactionKey)
|
Transaction |
createReportingTransaction(TransactionType transactionType)
Creates a new Reporting Transaction. |
Transaction |
createSIMTransaction(TransactionType transactionType,
long fingerPrintSequence,
BigDecimal amount)
Creates a new SIM Transaction. |
DeviceType |
getDeviceType()
|
Environment |
getEnvironment()
Get the Environment that transactions will be posted against. |
String |
getLogin()
Get the login. |
MarketType |
getMarketType()
|
String |
getMD5Value()
|
String |
getTransactionKey()
Get the transaction key. |
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(String MD5Value)
|
void |
setUserRef(String userRef)
Set the userRef for Card Present transactions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CP_VERSION
public static final int MAX_LOGIN_LENGTH
public static final int MAX_TRANSACTION_KEY_LENGTH
| Method Detail |
|---|
public static Merchant createMerchant(Environment environment,
String login,
String transactionKey)
public String getLogin()
public 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 String getMD5Value()
public void setMD5Value(String MD5Value)
MD5Value - the MD5Value to setpublic String getUserRef()
public void setUserRef(String userRef)
userRef - the userRef to set
public Transaction createAIMTransaction(TransactionType transactionType,
BigDecimal amount)
transactionType - amount -
public Transaction createSIMTransaction(TransactionType transactionType,
long fingerPrintSequence,
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||