public class Transaction extends Transaction implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
MD5Value |
protected java.util.Map<java.lang.String,java.lang.String> |
merchantDefinedMap |
protected java.util.Map<java.lang.String,java.lang.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,
java.math.BigDecimal amount)
Constructor for creation a transaction with typed objects.
|
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
createTransaction(Merchant merchant,
TransactionType transactionType,
java.math.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,
java.util.Map<ResponseField,java.lang.String> responseMap)
Create a transaction from a responseMap.
|
java.lang.String |
getAuthorizationCode()
Get the authorization code of the transaction.
|
CreditCard |
getCreditCard()
Get the CreditCard associated with the transaction.
|
java.lang.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.
|
java.lang.String |
getMD5Value() |
java.lang.String |
getMerchantDefinedField(java.lang.String field)
Get a merchant defined field.
|
java.util.Map<java.lang.String,java.lang.String> |
getMerchantDefinedMap()
Get the merchant defined data map.
|
Order |
getOrder()
Get the Order associated with the transaction.
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestMap() |
java.lang.String |
getResponseField(ResponseField responseField)
Returns the payment gateway response data for a specific ResponseField.
|
java.util.Map<ResponseField,java.lang.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.
|
java.lang.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(java.lang.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(java.lang.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(java.lang.String field,
java.lang.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(java.lang.String splitTenderId)
The payment gateway assigned slit tender ID of an original transaction.
|
void |
setTransactionId(java.lang.String transactionId)
The payment gateway assigned transaction ID of an original transaction.
|
java.lang.String |
toNVPString()
Prepare the name/value pair mapping based on the Map(s) provided.
|
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toXMLStringprotected java.util.Map<java.lang.String,java.lang.String> requestMap
protected java.util.Map<java.lang.String,java.lang.String> merchantDefinedMap
protected TransactionType transactionType
protected java.lang.String MD5Value
protected Transaction(Merchant merchant, TransactionType transactionType, java.math.BigDecimal amount)
merchant - transactionType - amount - public static final Transaction createTransaction(Transaction transaction, java.util.Map<ResponseField,java.lang.String> responseMap)
transaction - responseMap - public static final Transaction createTransaction(Transaction transaction, BasicXmlDocument response)
transaction - response - public static Transaction createTransaction(Merchant merchant, TransactionType transactionType, java.math.BigDecimal amount)
merchant - transactionType - amount - public java.util.Map<java.lang.String,java.lang.String> getRequestMap()
public java.util.Map<ResponseField,java.lang.String> getResponseMap()
public void setTransactionId(java.lang.String transactionId)
transactionId - public void setSplitTenderId(java.lang.String splitTenderId)
splitTenderId - public java.lang.String getTransactionId()
public TransactionType getTransactionType()
public void setAuthorizationCode(java.lang.String authCode)
authCode - public java.lang.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(java.lang.String currencyCode)
currencyCode - public java.lang.String getCurrencyCode()
public void setRecurringBilling(boolean recurringBillingStatus)
recurringBillingStatus - public void setMerchantDefinedField(java.lang.String field,
java.lang.String value)
field - value - public java.lang.String getMerchantDefinedField(java.lang.String field)
field - public java.util.Map<java.lang.String,java.lang.String> getMerchantDefinedMap()
public java.lang.String getResponseField(ResponseField responseField)
responseField - public java.lang.String toNVPString()
toNVPString in class Transactionpublic boolean isCardPresent()
public BasicXmlDocument getCurrentResponse()
public java.lang.String getMD5Value()
public void setSolutionField(Solution solution)
solution - public Solution getSolutionField()
Copyright © 2018. All Rights Reserved.