The DoPaymentPolicyCmd
Business Policy Command
This command is called by the DoPaymentMPFCmdImpl Task command to perform processing specifc to the payment policy specified.
DoPaymentCLCmdImpl
,
DoPaymentPMCmdImpl
Field Summary | |
---|---|
static int |
CC_VALID_Y_RANGE The valid credit card expiry year range. |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
defaultCommandClassName The default implementation of this command. |
static java.lang.String |
ERRTASK_NAME Name of the default error view for this command. |
static java.lang.String |
MESSAGE_FOR_BUYER Property name for the MessageForBuyer property passed in the exceptionData of an ErrorDataBean. |
static java.lang.String |
NAME The name of this command. |
static java.lang.String |
NVP_field Deprecated. Use NVP_FIELD instead. |
static java.lang.String |
NVP_FIELD Property name for the field property passed in the exceptionData of an ErrorDataBean. |
static java.lang.String |
PM_MESSAGE_FOR_BUYER Property name for the MessageForBuyer property passed in the exceptionData of an ErrorDataBean. |
static java.lang.String |
PM_MESSAGE_FOR_MERCHANT Property name for the MessageForMerchant property passed in the exceptionData of an ErrorDataBean. |
static java.lang.String |
PM_PRIMARY_RC Property name for the PrimaryRC property passed in the exceptionData of an ErrorDataBean. |
static java.lang.String |
PM_SECONDARY_RC Property name for the SecondaryRC property passed in the exceptionData of an ErrorDataBean. |
static java.lang.String |
WCSHOSTNAME Environment variable name for the WebSphere Commerce host. |
static java.lang.String |
WCSWEBSERVERPORT Environment variable name for the WebSphere Commerce web server port. |
static java.lang.String |
WEBPATH Environment variable name for the WebSphere Commerce webpath. |
Method Summary | |
---|---|
java.lang.String |
getContentType() Returns the Content Type (or MIME type) of the return data, or null if the type is not known. |
java.lang.String |
getOrderState() Returns the single character String value that the called command wants the Calling command to use to set the Status of the order. |
byte[] |
getReturnData() Returns the byte Array containing Return Data from the Payment System. |
void |
setAccount(
AccountAccessBean abAccount) Sets the account property of the command. |
void |
setBuyerPOId(java.lang.Long nBuyerPOId) Sets optional buyerPOId if the customer (buyer) had specified a buyer purchase order number. |
void |
setErrorViewName(java.lang.String sEVN) Sets the error view to be used to report error. |
void |
setOrder(
OrderAccessBean ab) Sets the order property of the command. |
void |
setPaymentAttributes(
TypedProperty requestProperties) Sets the paymentAttributes property of the command. |
void |
setTotalAmount(java.math.BigDecimal totalAmount) Sets the totalAmount property of the command. |
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand |
getPolicyId,
getRequestProperties,
setPolicyId,
setRequestProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
public static final java.lang.String ERRTASK_NAME
public static final java.lang.String NVP_FIELD
com.ibm.commerce.beans.ErrorDataBean.
,
Constant Field Valuespublic static final java.lang.String NVP_field
NVP_FIELD
,
Constant Field Valuespublic static final java.lang.String PM_PRIMARY_RC
com.ibm.commerce.beans.ErrorDataBean.
,
Constant Field Valuespublic static final java.lang.String PM_SECONDARY_RC
com.ibm.commerce.beans.ErrorDataBean.
,
Constant Field Valuespublic static final java.lang.String PM_MESSAGE_FOR_BUYER
com.ibm.commerce.beans.ErrorDataBean.
,
Constant Field Valuespublic static final java.lang.String PM_MESSAGE_FOR_MERCHANT
com.ibm.commerce.beans.ErrorDataBean.
,
Constant Field Valuespublic static final java.lang.String MESSAGE_FOR_BUYER
PM_MESSAGE_FOR_BUYER
,
Constant Field Valuespublic static final java.lang.String WCSHOSTNAME
DoPaymentPMCmdImpl
,
Constant Field Valuespublic static final java.lang.String WCSWEBSERVERPORT
DoPaymentPMCmdImpl
,
Constant Field Valuespublic static final java.lang.String WEBPATH
DoPaymentPMCmdImpl
,
Constant Field Valuespublic static final int CC_VALID_Y_RANGE
Method Detail |
---|
public java.lang.String getContentType()
null
if the type is not known.
String
containing the name of the MIME type of the return
data, or null if the type is not knownpublic java.lang.String getOrderState()
public byte[] getReturnData()
public void setAccount(AccountAccessBean abAccount)
abAccount
- the AccountAccessBean representing the account the
order is associated withpublic void setBuyerPOId(java.lang.Long nBuyerPOId)
public void setErrorViewName(java.lang.String sEVN)
sEVN
- the Error View nameERRTASK_NAME
public void setOrder(OrderAccessBean ab)
public void setPaymentAttributes(TypedProperty requestProperties)
Some of the optional Payment Attributes that may be passed to the command are:
Keyword Value =========== ==================================== cardBrand The credit card brand. cardNumber The credit card number cardExpiryMonth The credit card exipration month cardExpiryYear The credit card exipration yearSee the command implementation class for the actual list of parameters that are expected.
requestProperties
- the TypedProperty object that contains all
the command parameters to be passed to this command.public void setTotalAmount(java.math.BigDecimal totalAmount)
totalAmount
- the total price of the order for which payment
is to be processed.