Configure PolicyCenter to use a real payment system

Perform these steps to configure PolicyCenter to take customer payments from a real payment system rather than the demonstration system that the base configuration provides.

About this task

For demonstration purposes only, in the base configuration, the externalPaymentLocation method on the gw.billing.PolicyPeriodBillingInstructionsManager object calls a demonstration version of a payment system that PolicyCenter itself implements.

To integrate with a real payment system, you must make the following changes to PolicyCenter.

Procedure

  1. In your application config.xml file, find the parameter PaymentSystemURL. Set that parameter to the URL of your real payment system.
  2. Change the code for the externalPaymentLocation method to contact your real payment system:
    1. Locate the line that looks like the following code. Note the commented out URL:
      var paymentURL = baseURL //gw.api.system.PCConfigParameters.PaymentSystemURL.Value
    2. Change the assignment to use the commented-out code:
      var paymentURL = gw.api.system.PCConfigParameters.PaymentSystemURL.Value
  3. If necessary, change the code for the externalPaymentLocation method to return to the required PolicyCenter location.
    1. Locate the line that looks like the following code. Note the commented out URL:
      var returnURL = baseURL 
              // gw.plugin.Plugins.get(gw.plugin.webconfig.IPolicyCenterWebConfigPlugin).PolicyCenterURL
    2. Change the assignment instead to use the commented-out code:
      var returnURL =
              gw.plugin.Plugins.get(gw.plugin.webconfig.IPolicyCenterWebConfigPlugin).PolicyCenterURL
  4. Configure the entry point JobWithNewPaymentInstrument to send any additional attributes that the real payment system sends to PolicyCenter.