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

ValidatePayment Method


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

Preconditions for Calling the ValidatePayment Method

None.

Arguments for the ValidatePayment Method

The ValidatePayment method has the arguments shown in Table 43.

Table 43. 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 Using Siebel Tools.

Pseudo-Algorithm for ValidatePayment

  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 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.