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.