public class Transaction extends Transaction
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RECEIPT_LINK_TEXT_LENGTH |
static String |
PAYMENT_FORM |
MD5Value, merchantDefinedMap, requestMap, transactionTypeBRACKET_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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldToRename(String fieldToRename,
String replacementName)
Add a field to rename.
|
void |
addFormInput(String inputName,
String htmlInputData)
Add an input name and replacement data to the list of fields that should
not be auto populated in the createForm method.
|
String |
createForm(String formName,
String formId,
Button button)
Return an HTML form with all inputs.
|
static String |
createRelayResponseRedirectUrl(String relayResponseUrl,
Map<String,String[]> requestParameterMap)
Build a relay response url for the relay response redirect.
|
static Transaction |
createTransaction(Merchant merchant,
TransactionType transactionType,
long fingerPrintSequence,
BigDecimal amount)
Create a Transaction for a given merchant.
|
Environment |
getEnvironment() |
Map<String,String> |
getFieldsToRename() |
Fingerprint |
getFingerprint() |
Map<String,String> |
getFormInputs()
Get the field names that should not be auto populated
in the createForm method.
|
HostedPaymentFormSettings |
getHostedPaymentFormSettings() |
HostedReceiptPageSettings |
getHostedReceiptPageSettings() |
String |
getRelayResponseUrl()
SIM applications use relay response.
|
boolean |
isShowPaymentForm()
Returns true if the payment data collection form should be displayed/used.
|
void |
setFieldsToRename(Map<String,String> fieldsToRename) |
void |
setFormInputs(LinkedHashMap<String,String> formInputs) |
void |
setHostedPaymentFormSettings(HostedPaymentFormSettings hostedPaymentFormSettings) |
void |
setHostedReceiptPageSettings(HostedReceiptPageSettings hostedReceiptPageSettings) |
void |
setRelayResponseUrl(String relayResponseUrl)
SIM applications use relay response to redirect the user back to the merchant server.
|
void |
setShowPaymentForm(boolean showForm)
If true, will populate a field that indicates that the merchant would like to
use the payment gateway hosted payment form to collect payment data.
|
createTransaction, createTransaction, createTransaction, getAuthorizationCode, getCreditCard, getCurrencyCode, getCurrentResponse, getCustomer, getECheck, getEmailReceipt, getMD5Value, getMerchantDefinedField, getMerchantDefinedMap, getOrder, getRequestMap, getResponseField, getResponseMap, getShippingAddress, getShippingCharges, getSolutionField, getTransactionId, getTransactionType, isCardPresent, setAuthorizationCode, setCreditCard, setCurrencyCode, setCustomer, setDuplicateWindow, setECheck, setEmailReceipt, setMerchantDefinedField, setOrder, setRecurringBilling, setShippingAddress, setShippingCharges, setSolutionField, setSplitTenderId, setTransactionId, toNVPStringgetDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toXMLStringpublic static final int MAX_RECEIPT_LINK_TEXT_LENGTH
public static final String PAYMENT_FORM
protected Transaction(Merchant merchant, TransactionType transactionType, BigDecimal amount)
merchant - transactionType - amount - public static Transaction createTransaction(Merchant merchant, TransactionType transactionType, long fingerPrintSequence, BigDecimal amount)
merchant - transactionType - fingerPrintSequence - amount - public Fingerprint getFingerprint()
public Environment getEnvironment()
public void setShowPaymentForm(boolean showForm)
showForm - public boolean isShowPaymentForm()
public Map<String,String> getFormInputs()
public void addFormInput(String inputName, String htmlInputData)
<label>Notes</label>
<input type='text' class='text' name='notes' size='45'></input>
inputName - htmlInputData - public void setFormInputs(LinkedHashMap<String,String> formInputs)
formInputs - the form input names and input options that should not
be auto populated in the createForm method.public HostedPaymentFormSettings getHostedPaymentFormSettings()
public void setHostedPaymentFormSettings(HostedPaymentFormSettings hostedPaymentFormSettings)
hostedPaymentFormSettings - the hostedPaymentFormSettings to setpublic void setFieldsToRename(Map<String,String> fieldsToRename)
fieldsToRename - the fieldsToRename to setpublic void addFieldToRename(String fieldToRename, String replacementName)
fieldToRename - replacementName - public HostedReceiptPageSettings getHostedReceiptPageSettings()
public void setHostedReceiptPageSettings(HostedReceiptPageSettings hostedReceiptPageSettings)
hostedReceiptPageSettings - the hostedReceiptPageSettings to setpublic void setRelayResponseUrl(String relayResponseUrl)
relayResponseUrl - public String getRelayResponseUrl()
public String createForm(String formName, String formId, Button button)
public static String createRelayResponseRedirectUrl(String relayResponseUrl, Map<String,String[]> requestParameterMap)
relayResponseUrl - requestParameterMap - Copyright © 2016. All Rights Reserved.