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