Siebel eSales Administration Guide > Shopping Service API > Workflow Methods >

ValidatePayment


This method is used to validate the payment information for either a purchase order or a credit card.

Expected Preconditions Before the Method Can Be Called

None.

Arguments

The ValidatePayment method has the arguments shown in Table 59.

Table 59. ValidatePayment Arguments
Name
Type
Data Type
Optional
Comments
PO Number
Input
String
N
Purchase order number.
Credit Card Number
Input
String
Y
Credit card number.
Credit Card Type
Input
String
Y
Credit card type.
Expiration Month
Input
String
Y
Expiration month.
Expiration Year
Input
String
Y
Expiration year.
Return Error Code
Input
String
N
Does not return an error if equal to N.
Error Message
Output
String
N
Error message, if any.

NOTE:  If you want to perform credit card validation on a business component other than Quote, the business component must be either based on the CSSBCBase class, based on a class that is itself based on the CSSBCBase class, or based on a class that inherits from the CSSBCBase class, such as CSSBCQuote. For more information, see the section on credit card user properties in Siebel Tools Reference.

Pseudo-Algorithm

  1. Check what kind of payment is entered by checking the PO Number and Credit Card Number input arguments.
  2. If PO Number has a value, then the payment information is valid.
  3. If Credit Card Number has a value, then get all the required fields.
  4. Pass the credit card information to the Credit Card Transaction Service business service to validate the information.

 Siebel eSales Administration Guide 
 Published: 18 April 2003