GetPaymentInfo command

This command returns the credit card number, credit card brand and credit card expiry date that were stored in the ORDPAYMTHD table for the order. New commands do not store the payment information in the ORDPAYMTHD table. This command is deprecated and is provided for backward compatibility only.

Command structure

http://host name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, GetPaymentInfo  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

langId
Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table
storeId
The reference number of the store associated with this command
URL
(Required) The URL to be called when the command completes successfully
orderId
(Required) The order reference number about which payment information is being requested

Example

In this example, payments are not processed by Commerce Payments, the payment information is stored in the database. The example assumes that the store administrator logs in and causes this command to run:

https://host name/webapp/wcs/stores/servlet/GetPaymentInfo?storeId=storeId 
&orderId=123&URL=pathname/PayInfo.jsp

Behavior

Exception conditions

An error is generated under the following conditions: