public class BankServACHCashierExtension extends java.lang.Object implements CashierExtension
It implements the com.ibm.etill.cashier.CashierExtension interface.
Constructor and Description |
---|
BankServACHCashierExtension()
BankServACHCashierExtension default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | getStateCode(java.util.Hashtable requestParms)
Returns the two-character US State code for the $STATEPROVINCE parameter or $AVS.STATEPROVINCE parameter required by some cassettes.
|
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.
|
public BankServACHCashierExtension()
protected java.lang.String getStateCode(java.util.Hashtable requestParms) throws ECException
This method tries to locate the two-character State code. From the WebSphere Commerce STATEPROV Table using the value specified in the "billto_state" environment variable as State name.
The method returns null if no State Code can be found for the State name specified.
For compatibility, the method returns the "billto_state" environment variable value as the State code if the value is of length two.
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
The Standard WebSphere Commerce Cashier Profile for the Cassette for BankServACH uses this method to generate value for the $STATEPROVINCE parameter specified in the profile.
Note that for WebSphere Commerce the DataSource Connection parameter is generally null.