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
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
- Retrieves the payment information stored in the ORDPAYMTHD table.
- The data are returned in the form of name-value pairs sent to the specified
URL. These include:
- quantity - number of payment for the order (usually one)
- cardBrand_n - credit card brand for payment number n
- cardNumber_n - credit card number for payment number n
- cardExpiryYear_n - credit card expiry year for payment number n
- cardExpiryMonth_n - credit card expiry month for payment number n
- This command is applicable only to those payment methods that store the payment information in the ORDPAYMTHD table. It does not apply to others, such as WebSphere Commerce Payments. For more information about WebSphere Commerce Payments, refer to the WebSphere Commerce Administration Guide or to the WebSphere Commerce Payments Programming Guide and Reference.
Exception conditions
An error is generated under the following conditions:
- The order reference number parameter is missing.
- The URL parameter is missing.
- The payment information for the given order reference number could not be found.