Retrieving result information from the payment gateway

PolicyCenter uses a Gosu object that implements the PaymentGatewayResponse interface to receive data from the payment gateway. Implement the isApproved and isVoided plugin methods to check the status of the payment request. Both of these methods take an object that implements the PaymentGatewayResponse interface as an argument and return a boolean value.

A servlet typically processes the payment information from the payment gateway user interface.