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. The requestSecureToken plugin method takes an object that implements the PaymentInformation interface as an argument and returns an object that implements the PaymentGatewayResponse interface. This response object provides the value for secureToken. 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 the secureToken to 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.