PrimePaymentCmd
public interface DoPaymentCmd extends TaskCommand
DoPaymentCmd
Task Command is called by the
OrderProcessCmd
Controller Command to process payment
for an order.
If successful, the OrderProcessCmd
will set the Order
status to the value specified by this command and will return the
returnData to the shopper to complete the payment initiation request.
(The returnData may be null. In this case, the OrderProcessCmd
will go to the OrderOK View to display a confirmation page to the
shopper.)
If unsuccessful, the command is expected to throw the ECApplicationException
specifying the Error View Command named by the
com.ibm.commerce.DoPaymentCmd.ERROR_TASK_NAME.Modifier and Type | Field and Description |
---|---|
static int |
CC_VALID_Y_RANGE
Deprecated.
The valid credit card expiry year range.
|
static java.lang.String |
COPYRIGHT
Deprecated.
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
Deprecated.
The default implementation of this command.
|
static java.lang.String |
ERR_CODE_BAD_CCNUM
Deprecated.
Error code indicating invalid card number.
|
static java.lang.String |
ERR_CODE_BAD_SYS
Deprecated.
Error code indicating a system error has occurred.
|
static java.lang.String |
ERR_CODE_BAD_XDATE
Deprecated.
Error code indicating invalid expiry date.
|
static java.lang.String |
ERR_CODE_MISSING_PARAM
Deprecated.
Error code indicating a missing parameter.
|
static java.lang.String |
ERRTASK_NAME
Deprecated.
Name of the Error View for this command.
|
static java.lang.String |
MESSAGE_FOR_BUYER
Deprecated.
Property name for the MessageForBuyer property passed in the exceptionData of an ErrorDataBean.
|
static java.lang.String |
NAME
Deprecated.
The name of this command.
|
static java.lang.String |
NVP_field
Deprecated.
Use NVP_FIELD instead.
|
static java.lang.String |
NVP_FIELD
Deprecated.
Property name for the field property passed in the exceptionData of an ErrorDataBean.
|
static java.lang.String |
PM_MESSAGE_FOR_BUYER
Deprecated.
Property name for the MessageForBuyer property passed in the exceptionData of an ErrorDataBean.
|
static java.lang.String |
PM_MESSAGE_FOR_MERCHANT
Deprecated.
Property name for the MessageForMerchant property passed in the exceptionData of an ErrorDataBean.
|
static java.lang.String |
PM_PRIMARY_RC
Deprecated.
Property name for the PrimaryRC property passed in the exceptionData of an ErrorDataBean.
|
static java.lang.String |
PM_SECONDARY_RC
Deprecated.
Property name for the SecondaryRC property passed in the exceptionData of an ErrorDataBean.
|
static java.lang.String |
WCSHOSTNAME
Deprecated.
Environment variable name for the WebSphere Commerce host.
|
static java.lang.String |
WCSWEBSERVERPORT
Deprecated.
Environment variable name for the WebSphere Commerce web server port.
|
static java.lang.String |
WEBPATH
Deprecated.
Environment variable name for the WebSphere Commerce webpath.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Deprecated.
Returns the Content Type (or MIME type) of the return data, or
null if
the type is not known. |
java.lang.String |
getOrderState()
Deprecated.
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()
Deprecated.
Returns the byte Array containing Return Data from the Payment System.
|
void |
setOrderId(java.lang.Long orderId)
Deprecated.
Sets the orderId property of the command.
|
void |
setPaymentAttributes(TypedProperty requestProperties)
Deprecated.
Sets the paymentAttributes property of the command.
|
void |
setTotalAmount(java.math.BigDecimal totalAmount)
Deprecated.
Sets the totalAmount property of the command.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String ERRTASK_NAME
static final java.lang.String ERR_CODE_MISSING_PARAM
NVP_FIELD
,
Constant Field Valuesstatic final java.lang.String ERR_CODE_BAD_CCNUM
static final java.lang.String ERR_CODE_BAD_XDATE
static final java.lang.String ERR_CODE_BAD_SYS
If a Payment System is used to process the payment for the order, this error code could also be used to indicate an error detected by the Payment System. The implementation class of the command may return additional error property in the exceptionData of an ErrorDataBean passed to the Error View specified by the command.
ErrorDataBean
,
Constant Field Valuesstatic final java.lang.String NVP_FIELD
ErrorDataBean
,
Constant Field Valuesstatic final java.lang.String NVP_field
NVP_FIELD
,
Constant Field Valuesstatic final java.lang.String PM_PRIMARY_RC
ErrorDataBean
,
Constant Field Valuesstatic final java.lang.String PM_SECONDARY_RC
ErrorDataBean
,
Constant Field Valuesstatic final java.lang.String PM_MESSAGE_FOR_BUYER
ErrorDataBean
,
Constant Field Valuesstatic final java.lang.String PM_MESSAGE_FOR_MERCHANT
ErrorDataBean
,
Constant Field Valuesstatic final java.lang.String MESSAGE_FOR_BUYER
PM_MESSAGE_FOR_BUYER
,
Constant Field Valuesstatic final java.lang.String WCSHOSTNAME
com.ibm.commerce.payment.commands.DoPaymentPMCmdImpl
,
Constant Field Valuesstatic final java.lang.String WCSWEBSERVERPORT
com.ibm.commerce.payment.commands.DoPaymentPMCmdImpl
,
Constant Field Valuesstatic final java.lang.String WEBPATH
com.ibm.commerce.payment.commands.DoPaymentPMCmdImpl
,
Constant Field Valuesstatic final int CC_VALID_Y_RANGE
static final java.lang.String defaultCommandClassName
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 knownjava.lang.String getOrderState()
byte[] getReturnData()
void setOrderId(java.lang.Long orderId)
orderId
- the order reference number of the Order for which payment
is to be processed.void setPaymentAttributes(TypedProperty requestProperties)
requestProperties
- the requestProperties object that contains all
the command parameters are to be passed to this command.
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 year cardVerifyCode The credit card verification code.For example, Amex CID, Visa CVV, or MasterCard CVC number(Min/Max: 3-4 digits)Refer to the documentation for the command implementation class for the actual Payment Attributes that are defined for the command.
DoPaymentMPFCmdImpl
void setTotalAmount(java.math.BigDecimal totalAmount)
totalAmount
- the total price of the Order for which payment
is to be processed.