|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.authorize.Transaction
net.authorize.aim.Transaction
net.authorize.sim.Transaction
public class Transaction
Field Summary | |
---|---|
static int |
MAX_RECEIPT_LINK_TEXT_LENGTH
|
static String |
PAYMENT_FORM
|
Fields inherited from class net.authorize.aim.Transaction |
---|
MD5Value, merchantDefinedMap, requestMap, transactionType |
Fields inherited from class net.authorize.Transaction |
---|
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 |
Constructor Summary | |
---|---|
protected |
Transaction(Merchant merchant,
TransactionType transactionType,
BigDecimal amount)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.authorize.Transaction |
---|
getDecodedString, getEncodedString, setEncapCharDelimiter, setTransactionFieldDelimiter, toXMLString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_RECEIPT_LINK_TEXT_LENGTH
public static final String PAYMENT_FORM
Constructor Detail |
---|
protected Transaction(Merchant merchant, TransactionType transactionType, BigDecimal amount)
merchant
- transactionType
- amount
- Method Detail |
---|
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 Map<String,String> getFieldsToRename()
public 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |