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, unreferenced
public POnlinePaymentBeanImpl() throws RemoteException
RemoteException
public void setName(String sName) throws RemoteException
setName
in interface POnlinePaymentBean
sName
- a String
with the text to use for the fieldRemoteException
public void setAddress(String sAddress) throws RemoteException
setAddress
in interface POnlinePaymentBean
sAddress
- a String
with the text to use for the fieldRemoteException
public void setCity(String sCity) throws RemoteException
setCity
in interface POnlinePaymentBean
sCity
- a String
with the text to use for the fieldRemoteException
public void setState(String sState) throws RemoteException
setState
in interface POnlinePaymentBean
sState
- a String
with the text to use for the fieldRemoteException
public void setZip(String sZip) throws RemoteException
setZip
in interface POnlinePaymentBean
sZip
- a String
with the text to use for the fieldRemoteException
public void setCountry(String sCountry) throws RemoteException
setCountry
in interface POnlinePaymentBean
sCountry
- a String
with the text to use for the fieldRemoteException
public void setAmount(String sAmount) throws RemoteException
setAmount
in interface POnlinePaymentBean
sAmount
- a String
with the text to use for the fieldRemoteException
public 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 POnlinePaymentBean
sDebitNumber
- a String
with the text to use for the fieldRemoteException
public void setDebitExpiry(String sDebitExpiry) throws RemoteException
setDebitExpiry
in interface POnlinePaymentBean
sDebitExpiry
- a String
with the text to use for the fieldRemoteException
public void setDebitSecurityId(String sDebitSecurityId) throws RemoteException
setDebitSecurityId
in interface POnlinePaymentBean
sDebitSecurityId
- a String
with the text to use for the fieldRemoteException
public void setMode(String sMode) throws RemoteException
setMode
in interface POnlinePaymentBean
sMode
- a String
with the processing mode
to use:RemoteException
public void setPaymentResult(int sPaymentResult)
setPaymentResult
in interface POnlinePaymentBean
mPaymentResult
- 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 POnlinePaymentBean
RemoteException
public void setPaymentResultType(int sPaymentResultType)
setPaymentResultType
in interface POnlinePaymentBean
mPaymentResult
- 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 POnlinePaymentBean
RemoteException
public String getName() throws RemoteException
getName
in interface POnlinePaymentBean
String
with the value to use for the field.RemoteException
public String getAddress() throws RemoteException
getAddress
in interface POnlinePaymentBean
String
with the value to use for the field.RemoteException
public String getCity() throws RemoteException
getCity
in interface POnlinePaymentBean
String
with the value to use for the field.RemoteException
public String getState() throws RemoteException
getState
in interface POnlinePaymentBean
String
with the value to use for the field.RemoteException
public String getZip() throws RemoteException
getZip
in interface POnlinePaymentBean
String
with the value to use for the field.RemoteException
public String getCountry() throws RemoteException
getCountry
in interface POnlinePaymentBean
String
with the value to use for the field.RemoteException
public void update(int reason, Object data)
Swing
clients.
Default behavior in this case is to do nothing.update
in class PControllerImpl
reason
- 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 update
public Object getSelectionDataFor(String dataItem, int index)
Swing
clients.
Default behavior in this case is to do nothing
and return null.getSelectionDataFor
in interface PControllerBean
dataItem
- 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 POnlinePaymentBean
mH
- 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
RemoteException
public Hashtable getAllBillinfoDetails()
getAllBillinfoDetails
in interface POnlinePaymentBean
Hashtable
of all billinfo details.public String getBillinfoPoid()
getBillinfoPoid
in interface POnlinePaymentBean
String
with the value of billinfo poid.public void setBillinfoPoid(String sBillinfoPoid)
setBillinfoPoid
in interface POnlinePaymentBean
sBillId
- a String
with he value of billinfo poid.Copyright © 2003, 2023, Oracle and/or its affiliates.