public class Transaction extends Transaction implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
MD5Value |
protected Map<String,String> |
merchantDefinedMap |
protected Map<String,String> |
requestMap |
protected TransactionType |
transactionType |
BRACKET_PIPE_DELIMITER, CURRENCY_DECIMAL_PLACES, EMPTY_STRING, ENCAP_CHAR_DELIMITER, FALSE, MAX_AUTH_CODE_LENGTH, QUANTITY_DECIMAL_PLACES, TRANSACTION_FIELD_DELIMITER, TRUE, VERSION, ZERO_AMOUNT, ZERO_STRING| Modifier | Constructor and Description |
|---|---|
protected |
Transaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
Constructor for creation a transaction with typed objects.
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
createTransaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
Create a Transaction for a merchant.
|
static Transaction |
createTransaction(Transaction transaction,
BasicXmlDocument response)
Create a transaction from a response XML doc.
|
static Transaction |
createTransaction(Transaction transaction,
Map<ResponseField,String> responseMap)
Create a transaction from a responseMap.
|
String |
getAuthorizationCode()
Get the authorization code of the transaction.
|
CreditCard |
getCreditCard()
Get the CreditCard associated with the transaction.
|
String |
getCurrencyCode()
Get the currency code for Card Present transactions.
|
BasicXmlDocument |
getCurrentResponse()
Return a response XML doc if the transaction was a Card Present transaction.
|
Customer |
getCustomer()
Get the Customer information associated with the transaction.
|
ECheck |
getECheck() |
EmailReceipt |
getEmailReceipt()
Get the EmailReceipt associated with the transaction.
|
String |
getMD5Value() |
String |
getMerchantDefinedField(String field)
Get a merchant defined field.
|
Map<String,String> |
getMerchantDefinedMap()
Get the merchant defined data map.
|
Order |
getOrder()
Get the Order associated with the transaction.
|
Map<String,String> |
getRequestMap() |
String |
getResponseField(ResponseField responseField)
Returns the payment gateway response data for a specific ResponseField.
|
Map<ResponseField,String> |
getResponseMap()
Return the payment gateway response data map.
|
ShippingAddress |
getShippingAddress()
Get the ShippingAddress for the transaction request.
|
ShippingCharges |
getShippingCharges()
Get the ShippingCharges associated with the transaction.
|
Solution |
getSolutionField()
Get a solution field.
|
String |
getTransactionId()
Return the payment gateway assigned transaction ID of the transaction.
|
TransactionType |
getTransactionType()
Get the transaction type.
|
boolean |
isCardPresent()
Return true if the transaction is a Card Present type transaction.
|
void |
setAuthorizationCode(String authCode)
The authorization code of an original transaction not captured on the payment gateway.
|
void |
setCreditCard(CreditCard creditCard)
Set the CreditCard information for the transaction request.
|
void |
setCurrencyCode(String currencyCode)
Set the currency code for Card Present transactions.
|
void |
setCustomer(Customer customer)
Set the Customer information for the transaction request.
|
void |
setDuplicateWindow(int seconds)
The window of time after the submission of a transaction that a duplicate transaction can not be submitted.
|
void |
setECheck(ECheck eCheck) |
void |
setEmailReceipt(EmailReceipt emailReceipt)
Set the EmailReceipt information for the transaction request.
|
void |
setMerchantDefinedField(String field,
String value)
Set a merchant defined field.
|
void |
setOrder(Order order)
Set the Order (and OrderItems) for the transaction request.
|
void |
setRecurringBilling(boolean recurringBillingStatus)
Indicating marker used by merchant account providers to identify transactions which originate from merchant
hosted recurring billing applications.
|
void |
setShippingAddress(ShippingAddress shippingAddress)
Set the ShippingAddress for the transaction request.
|
void |
setShippingCharges(ShippingCharges shippingCharges)
Set the ShippingCharges for the transaction request.
|
void |
setSolutionField(Solution solution)
Set a solution field.
|
void |
setSplitTenderId(String splitTenderId)
The payment gateway assigned slit tender ID of an original transaction.
|
void |
setTransactionId(String transactionId)
The payment gateway assigned transaction ID of an original transaction.
|
String |
toNVPString()
Prepare the name/value pair mapping based on the Map(s) provided.
|
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toXMLStringprotected TransactionType transactionType
protected String MD5Value
protected Transaction(Merchant merchant, TransactionType transactionType, BigDecimal amount)
merchant - transactionType - amount - public static final Transaction createTransaction(Transaction transaction, Map<ResponseField,String> responseMap)
transaction - responseMap - public static final Transaction createTransaction(Transaction transaction, BasicXmlDocument response)
transaction - response - public static Transaction createTransaction(Merchant merchant, TransactionType transactionType, BigDecimal amount)
merchant - transactionType - amount - public Map<ResponseField,String> getResponseMap()
public void setTransactionId(String transactionId)
transactionId - public void setSplitTenderId(String splitTenderId)
splitTenderId - public String getTransactionId()
public TransactionType getTransactionType()
public void setAuthorizationCode(String authCode)
authCode - public String getAuthorizationCode()
public void setCreditCard(CreditCard creditCard)
creditCard - public CreditCard getCreditCard()
public void setECheck(ECheck eCheck)
eCheck - the eCheck to setpublic ECheck getECheck()
public void setCustomer(Customer customer)
customer - public Customer getCustomer()
public void setEmailReceipt(EmailReceipt emailReceipt)
emailReceipt - public EmailReceipt getEmailReceipt()
public void setOrder(Order order)
order - public Order getOrder()
public void setShippingAddress(ShippingAddress shippingAddress)
shippingAddress - public ShippingAddress getShippingAddress()
public void setShippingCharges(ShippingCharges shippingCharges)
shippingCharges - public ShippingCharges getShippingCharges()
public void setDuplicateWindow(int seconds)
seconds - public void setCurrencyCode(String currencyCode)
currencyCode - public String getCurrencyCode()
public void setRecurringBilling(boolean recurringBillingStatus)
recurringBillingStatus - public void setMerchantDefinedField(String field, String value)
field - value - public String getMerchantDefinedField(String field)
field - public Map<String,String> getMerchantDefinedMap()
public String getResponseField(ResponseField responseField)
responseField - public String toNVPString()
toNVPString in class Transactionpublic boolean isCardPresent()
public BasicXmlDocument getCurrentResponse()
public String getMD5Value()
public void setSolutionField(Solution solution)
solution - public Solution getSolutionField()
Copyright © 2016. All Rights Reserved.