Using and controlling the up-front payment user interface
The UpFrontPaymentDV.Editable.pcf file provides the user interface for managing up-front payments before you bind or issue a policy. This file uses Gosu objects for state control and data transfer. The state control objects call payment gateway configuration plugin methods and payment gateway plugin methods. The payment gateway plugin uses the data transfer objects to provide information to and receive information from the payment gateway.
The gw.billing.PolicyPeriodBillingInstructionsManager Gosu class provides overall state control for the Payment screen. This class delegates control of individual areas of the screen to other classes. For state control of up-front payments, the gw.billing.UpFrontPaymentStateContainerImpl class implements the gw.billing.UpFrontPaymentStateContainer interface. Modify these two classes to implement the requirements of communicating with your payment gateway. Typically, you modify the methods in UpFrontPaymentStateContainerImpl that call the payment gateway plugin methods. These methods are takeElectronicPayment, synchronizePendingPaymentGatewayTransactions, and removePayment.
