public class POnlinePaymentBeanImpl extends PControllerImpl implements POnlinePaymentBean, Serializable
POnlinePaymentBeanImpl is a controller that defines
the values used for the Online Payment Input Form.mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
POnlinePaymentBeanImpl()
Creates the controller for the Online Payment Input Form.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAddress()
Gets the value for the Customer Address field.
|
Hashtable |
getAllBillinfoDetails()
Gets the available billinfos for given account.
|
String |
getBillinfoPoid()
Gets the value for the selected Billinfo object field.
|
String |
getCity()
Gets the value for the Customer City field.
|
String |
getCountry()
Gets the value for the Customer Country field.
|
String |
getName()
Gets the value for the Customer Name field.
|
int |
getPaymentResult()
Gets the value for Payment Result.
|
int |
getPaymentResultType()
Gets the value for Payment Result type.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Used only for BAS
Swing clients. |
String |
getState()
Gets the value for the Customer State field.
|
String |
getZip()
Gets the value for the Customer Zip Code field.
|
void |
initAmount(String sAmount)
Initializes and validates the
BigDecimal to use for the Amount field. |
protected void |
initPaymentScreen(PCachedContext ctx,
PModelHandle mH)
Retrieves the necessary information about the account
and populates the online payment form with default values.
|
void |
onlinepayment(PModelHandle mH,
ResourceBundle bundle)
The main action method called by the Infranet Servlet.
|
protected void |
payPaymentScreen(PCachedContext ctx,
PModelHandle mH)
Verifies the input fields on the form.
|
protected void |
processBillinfoArray(SparseArray billInfoArray) |
void |
setAddress(String sAddress)
Sets the value for the Customer Address field.
|
void |
setAmount(String sAmount)
Sets the charge value for the Amount field.
|
void |
setBillinfoPoid(String sBillinfoPoid)
Sets the value for the Billinfo object field.
|
void |
setCity(String sCity)
Sets the value for the Customer City field.
|
void |
setCountry(String sCountry)
Sets the value for the Customer Country field.
|
void |
setDebitExpiry(String sDebitExpiry)
Sets the value for the Credit Card Expiration Date field.
|
void |
setDebitNumber(String sDebitNumber)
Sets the value for the Credit Card number field.
|
void |
setDebitSecurityId(String sDebitSecurityId)
Sets the value for the Credit Card Security ID (CVV/CDD) field.
|
void |
setMode(String sMode)
Sets the processing mode.
|
void |
setName(String sName)
Sets the value for the Customer Name field.
|
void |
setPaymentResult(int sPaymentResult)
Sets the value to return for Payment Result.
|
void |
setPaymentResultType(int sPaymentResultType)
Sets the value to return for Payment Result type.
|
void |
setState(String sState)
Sets the value for the Customer State field.
|
void |
setZip(String sZip)
Sets the value for the Customer ZipCode field.
|
void |
update(int reason,
Object data)
Used only for BAS
Swing clients. |
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedpublic POnlinePaymentBeanImpl()
throws RemoteException
RemoteExceptionpublic void setName(String sName) throws RemoteException
setName in interface POnlinePaymentBeansName - a String with the text to use for the fieldRemoteExceptionpublic void setAddress(String sAddress) throws RemoteException
setAddress in interface POnlinePaymentBeansAddress - a String with the text to use for the fieldRemoteExceptionpublic void setCity(String sCity) throws RemoteException
setCity in interface POnlinePaymentBeansCity - a String with the text to use for the fieldRemoteExceptionpublic void setState(String sState) throws RemoteException
setState in interface POnlinePaymentBeansState - a String with the text to use for the fieldRemoteExceptionpublic void setZip(String sZip) throws RemoteException
setZip in interface POnlinePaymentBeansZip - a String with the text to use for the fieldRemoteExceptionpublic void setCountry(String sCountry) throws RemoteException
setCountry in interface POnlinePaymentBeansCountry - a String with the text to use for the fieldRemoteExceptionpublic void setAmount(String sAmount) throws RemoteException
setAmount in interface POnlinePaymentBeansAmount - a String with the text to use for the fieldRemoteExceptionpublic void initAmount(String sAmount) throws RemoteException
BigDecimal to use for the Amount field.sAmount - a String with the amount to be chargedRemoteException - thrown for Infranet errorspublic void setDebitNumber(String sDebitNumber) throws RemoteException
setDebitNumber in interface POnlinePaymentBeansDebitNumber - a String with the text to use for the fieldRemoteExceptionpublic void setDebitExpiry(String sDebitExpiry) throws RemoteException
setDebitExpiry in interface POnlinePaymentBeansDebitExpiry - a String with the text to use for the fieldRemoteExceptionpublic void setDebitSecurityId(String sDebitSecurityId) throws RemoteException
setDebitSecurityId in interface POnlinePaymentBeansDebitSecurityId - a String with the text to use for the fieldRemoteExceptionpublic void setMode(String sMode) throws RemoteException
setMode in interface POnlinePaymentBeansMode - a String with the processing mode
to use:RemoteExceptionpublic void setPaymentResult(int sPaymentResult)
setPaymentResult in interface POnlinePaymentBeanmPaymentResult - an integer representing the result. Corresponds to the
opa.charge.result<payment_result> keys
in the WebKitResources.properties file,
where <payment_result> is a positive integer.public int getPaymentResult()
throws RemoteException
opa.charge.result<payment_result> keys
in the WebKitResources.properties file,
where <payment_result> is a positive integer.See the online_payment.jsp file for an example of how this method is invoked.
getPaymentResult in interface POnlinePaymentBeanRemoteExceptionpublic void setPaymentResultType(int sPaymentResultType)
setPaymentResultType in interface POnlinePaymentBeanmPaymentResult - an integer representing the result. Corresponds to the
opa.charge.result<payment_result_type> keys
in the WebKitResources.properties file,
where <payment_result> is a positive integer.public int getPaymentResultType()
throws RemoteException
opa.charge.result<payment_result_type> keys
in the WebKitResources.properties file,
where <payment_result> is a positive integer.See the online_payment.jsp file for an example of how this method is invoked.
getPaymentResultType in interface POnlinePaymentBeanRemoteExceptionpublic String getName() throws RemoteException
getName in interface POnlinePaymentBeanString with the value to use for the field.RemoteExceptionpublic String getAddress() throws RemoteException
getAddress in interface POnlinePaymentBeanString with the value to use for the field.RemoteExceptionpublic String getCity() throws RemoteException
getCity in interface POnlinePaymentBeanString with the value to use for the field.RemoteExceptionpublic String getState() throws RemoteException
getState in interface POnlinePaymentBeanString with the value to use for the field.RemoteExceptionpublic String getZip() throws RemoteException
getZip in interface POnlinePaymentBeanString with the value to use for the field.RemoteExceptionpublic String getCountry() throws RemoteException
getCountry in interface POnlinePaymentBeanString with the value to use for the field.RemoteExceptionpublic void update(int reason,
Object data)
Swing clients.
Default behavior in this case is to do nothing.update in class PControllerImplreason - an integer constant that indicates the reason for the update
(UPDATE_NEW_MODEL, UPDATE_PROPERTY,
UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)data - the data associated with updatepublic Object getSelectionDataFor(String dataItem, int index)
Swing clients.
Default behavior in this case is to do nothing
and return null.getSelectionDataFor in interface PControllerBeandataItem - the name of a data item. Must match the name of
an item changed by sending a PViewDataChangeEvent.index - an optional index into an array data itempublic void onlinepayment(PModelHandle mH, ResourceBundle bundle) throws RemoteException
onlinepayment in interface POnlinePaymentBeanmH - the PModelHandle for the accountbundle - the resource bundleRemoteException - thrown for null contexts and invalid payment modesprotected void payPaymentScreen(PCachedContext ctx, PModelHandle mH) throws RemoteException
ctx - the context to the connection manager (CM)mH - the PModelHandle for the accountRemoteException - thrown for invalid field descriptionsprotected void initPaymentScreen(PCachedContext ctx, PModelHandle mH) throws RemoteException
FldNameinfo of PCM_OP_BAL_GET_ACCT_BILLINFO opcode
output flist. If the FldNameinfo is empty then the values are retrieved from
FldNameInfo of account objectctx - the context to the connection manager (CM)mH - the PModelHandle for the accountRemoteException - thrown for invalid field descriptionsprotected void processBillinfoArray(SparseArray billInfoArray) throws RemoteException
RemoteExceptionpublic Hashtable getAllBillinfoDetails()
getAllBillinfoDetails in interface POnlinePaymentBeanHashtable of all billinfo details.public String getBillinfoPoid()
getBillinfoPoid in interface POnlinePaymentBeanString with the value of billinfo poid.public void setBillinfoPoid(String sBillinfoPoid)
setBillinfoPoid in interface POnlinePaymentBeansBillId - a String with he value of billinfo poid.Copyright © 2003, 2023, Oracle and/or its affiliates.