Implementing the payment gateway exit point
The payment gateway exit point maps payment information from PolicyCenter to URL parameters on the URL that accesses the payment gateway. PolicyCenter provides a demonstration implementation of the payment gateway exit point in the PaymentGateway.pcf file. This implementation uses the following parameters to build a URL to access the payment gateway:
paymentGatewayURL– The URL for the payment gateway. Use the payment gateway configuration plugin to set up this URL.secureToken– Encoded information that identifies an individual transaction. Encoding the information ensures that third parties cannot examine or modify the information during its transfer from PolicyCenter to the payment gateway. TherequestSecureTokenplugin method takes an object that implements thePaymentInformationinterface as an argument and returns an object that implements thePaymentGatewayResponseinterface. This response object provides the value forsecureToken. Typically, a secure token expires after a length of time or after a number of unsuccessful attempts to complete the payment. You specify these parameters when you set up the payment gateway.secureTokenID– A value that you provide to identify thesecureTokento the payment gateway.
Implement the PaymentGatewayPlugin plugin method redirectToPaymentGateway to use the exit point. In the exit point, map PolicyCenter values to URL parameters that your payment gateway requires.
