Taking information about a payment

PolicyCenter uses a Gosu object that implements the PaymentInformation interface to hold information about the up-front payment to send to the payment gateway. This object includes information about the policy period, the payment instrument, and the amount to pay.

The Payment screen retrieves information about known payment instruments from the system of record, which is usually the billing system. This information is in the form of Gosu objects that implement the BillingPaymentInstrument interface. Each object includes a String token that identifies the credit card to the payment gateway. For a new payment instrument, if the user selects Save for Future Use, you must call the getCardDetails plugin method to get a new token from the payment gateway. This method takes a String that identifies the credit card as an argument and returns a TokenizedCreditCardDetails object.

The Payment screen also provides the amount to pay as an up-front payment.