Implementing the payment gateway configuration plugin
The payment gateway configuration plugin provides basic merchant information that PolicyCenter uses for communication with the payment gateway and information about how to access the payment gateway. PolicyCenter provides a demonstration implementation of the payment gateway configuration plugin in gw.plugin.paymentgateway.DefaultPaymentGatewayConfigPlugin. This plugin calls a demonstration implementation of the payment gateway that PolicyCenter itself implements. PolicyCenter wraps calls to the payment gateway configuration plugin in the gw.payment.paymentgateway.PaymentGatewayConfig class.
Create your own plugin class to implement the PaymentGatewayConfigPlugin interface. If the value that your plugin returns for the RedirectToPaymentGateway configuration parameter is false, PolicyCenter does not take electronic payments. Modify PaymentGatewayConfig.gs to perform postprocessing of the configuration parameter values and change the plugin registry of the PaymentGatewayConfigPlugin interface to use your plugin class.
