Reference > Shop flow URLs > Order Management subsystem URLs > Order payment
GetPaymentInfo URL
This URL returns the credit card number, brand, and expiry date that were stored in the ORDPAYMTHD table for the order.
This URL returns the credit card number, brand, and 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 URL is deprecated and is provided only for compatibility with previous versions.
URL structure
- http:// host name/path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path
name-value pair with the & character. For a detailed description of the parameters and their values, see 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 reference number of the order 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 site administrator logs in and causes this command to run:
https://host/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 payments for the order (typically 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.
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.
Related concepts
Related reference
Order Management subsystem URLs