public class GenericExtension extends java.lang.Object implements CashierExtension
It implements the com.ibm.etill.cashier.CashierExtension interface.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String | CHAR_ENCODING_8859_1 |
protected static java.lang.String | KEY_CANCELURL |
protected static java.lang.String | KEY_EXPIRY |
protected static java.lang.String | KEY_FAILUREURL |
protected static java.lang.String | KEY_ORDERDESCRIPTION |
protected static java.lang.String | KEY_PAN |
protected static java.lang.String | KEY_SERVICEURL |
protected static java.lang.String | KEY_SUCCESSURL |
protected static java.lang.String | KEY_TRANSMETHOD |
protected static java.lang.String | UNSPECIFIED_BRAND |
Constructor and Description |
---|
GenericExtension()
GenericExtension default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | getCancelUrl(java.util.Hashtable parms)
Prepare CancelURL for the WebSphere Commerce Payments ReceivePayment command.
|
protected java.lang.String | getCardExpiry(java.util.Hashtable parms)
Returns the value of the cardExpiry parameter.
|
protected java.lang.String | getCardNumber(java.util.Hashtable parms)
Returns the value of the cardNumber parameter.
|
protected java.lang.String | getFailureUrl(java.util.Hashtable parms)
Prepare FailureURL for the WebSphere Commerce Payments ReceivePayment command for the Cassette for SET.
|
protected java.lang.String | getOrderDescription(java.util.Hashtable parms)
Get the OrderDescription by calling the GetOrderDesc Task Command.
|
protected java.lang.String | getServiceUrl(java.util.Hashtable parms)
Prepare ServiceURL for the WebSphere Commerce Payments ReceivePayment command for the Cassette for SET.
|
protected java.lang.String | getSuccessUrl(java.util.Hashtable parms)
Prepare SuccessURL for the WebSphere Commerce Payments ReceivePayment command for the Cassette for SET.
|
protected java.lang.String | getTransMethod(java.util.Hashtable parms)
Get the TransMethod parameter value for a Cassette.
|
java.lang.String | getValue(java.lang.String keyword, java.util.Hashtable parms, java.util.Hashtable paymentParms, java.sql.Connection dsConn, CashierTrace traceService, java.util.Locale locale)
This method is called by the Cashier to give the CashierExtension an opportunity to construct and return a value for the specified keyword.
|
protected static final java.lang.String KEY_ORDERDESCRIPTION
protected static final java.lang.String KEY_SUCCESSURL
protected static final java.lang.String KEY_FAILUREURL
protected static final java.lang.String KEY_CANCELURL
protected static final java.lang.String KEY_SERVICEURL
protected static final java.lang.String KEY_TRANSMETHOD
protected static final java.lang.String KEY_PAN
protected static final java.lang.String KEY_EXPIRY
protected static final java.lang.String UNSPECIFIED_BRAND
protected static final java.lang.String CHAR_ENCODING_8859_1
protected java.lang.String getCancelUrl(java.util.Hashtable parms) throws ECException
protected java.lang.String getCardExpiry(java.util.Hashtable parms) throws ECException
protected java.lang.String getCardNumber(java.util.Hashtable parms) throws ECException
protected java.lang.String getFailureUrl(java.util.Hashtable parms) throws ECException
protected java.lang.String getOrderDescription(java.util.Hashtable parms) throws ECException
protected java.lang.String getServiceUrl(java.util.Hashtable parms) throws ECException
protected java.lang.String getSuccessUrl(java.util.Hashtable parms) throws ECException
protected java.lang.String getTransMethod(java.util.Hashtable parms) throws ECException
The TransMethod parameter value returned will be "0" if the communication channel from the shopper's browser to the merchant server is secure. Otherwise return a "1".
For reference, these returned TransMethod values are as defined by the SET Consortium for MIA.
As of today, only the Cassette for SET uses this parameter when Merchant-Initiated Authorization is used.
public java.lang.String getValue(java.lang.String keyword, java.util.Hashtable parms, java.util.Hashtable paymentParms, java.sql.Connection dsConn, CashierTrace traceService, java.util.Locale locale) throws CashierException
Several of the Standard WebSphere Commerce Cashier Profiles use this method to generate values for the extension parameter specified in the profile. The two parameters that use this method are:
Note that the DataSource Connection parameter is generally null as WebSphere Commerce does not pass a DataSource Connection to the Cashier.