In this step, you will create the payment plug-in deployment
descriptor file which describes how the payment plug-in should be
deployed. This is also where the payment plug-in configuration properties
referenced by the payment plug-in API methods are specified.
Procedure
To create the payment plug-in deployment descriptor
file:
- Open the WC_eardir /xml/config/payments/ppc/plugins directory.
- Create a new directory named MyPaymentPlugin in the plugins
directory.
- Create a new text file named PluginDeployment.xml in the
MyPaymentPlugin directory.
- Open the file for editing, and insert the following code
into the file:
<?xml version="1.0" encoding="UTF-8"?>
<Plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../PaymentPlugin.xsd">
<PluginInformation jndi="ejb/com/mycompany/payment/plugin/MyPaymentPluginHome"
home="com.mycompany.payment.plugin.MyPaymentPluginHome" name="MyPaymentPlugin" version="1.0.0"
vendor="MyCompany" independentCredit="true" virtualTerminal="none">
<PluginProperty name="url" value="http://localhost:9080/PSPSimRouter/services/PSPSim" />
<ProtocolProperties>
<ProtocolProperty name="account" keep="true" />
<ProtocolProperty name="cc_brand" keep="true" />
<ProtocolProperty name="expire_month" keep="true" />
<ProtocolProperty name="expire_year" keep="true" />
</ProtocolProperties>
</PluginInformation>
</Plugin>
- Close the file and save the changes.
Results
The finished PluginDeployment.xml can be found here .