Implementation Guide for Oracle Self-Service E-Billing > Customizing Payment >

Customizing Anonymous Payment Validation


You can customize the validation of anonymous payments for your payment validation requirements.

The Payment service invokes the anonymousPaymentValidator implementation to verify an anonymous payment. Figure 28 shows the anonymous payment validation.

Figure 28. Anonymous Payment Validation

You customize the anonymousPaymentValidator implementation by configuring the payment service XMA file and implementing the anonymous payment API.

To customize anonymous payment validation

  1. Open the paymentService.xma.xml file in the following directory.In the path, EDX_HOME is the directory where you installed Oracle Self-Service E-Billing.
    • UNIX. EDX_HOME\xma\config\modules\services
    • Windows. EDX_HOME/xma/config/modules/services
  2. Replace the anonymousPaymentValidator Javabean content.

    If you have a Telco implementation, then replace the following content:

    <bean id="anonymousPaymentValidator" class="com.edocs.common.services.payment.DefaultAnonymousPaymentValidator" scope="singleton">

    </bean>

    If you have a Utility implementation, then replace the following Javabean content:

    <bean id="anonymousPaymentValidator" class="com.edocs.common.services.payment.DefaultUtilityAnonymousPaymentValidator" scope="singleton">

    </bean>

  3. Implement the com.edocs.common.api.services.IAnonymousPaymentValidator interface. This interface provides the method verifyAccount(AnonymousPaymentVerifyParam anonymousPaymentVerifyParam). By default, the method checks whether the account and service ID are enrolled.

    You can use the following code to validate an anonymous payment:

    IPaymentService pmtService = EBillingServiceFactory.getPaymentService();

    anonymousPmtVerifyFlag = pmtService.verifyAnonymousPayment(pmtFormbean);

Implementation Guide for Oracle Self-Service E-Billing Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices.