Tutorials > Payments > Develop a payment plug-in

< Previous | Next >


Step 5: Creating the payment plug-in deployment descriptor file

In this step, we 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.

Prerequisites

Payment Service Provider Simulator

To create the payment plug-in deployment descriptor file:


Procedure

  1. Open the WC_EAR/xml/config/payments/ppc/plugins directory.

  2. Create a new directory named MyPaymentPlugin in the plugins directory.

  3. Create a new text file named PluginDeployment.xml in the MyPaymentPlugin directory.

  4. 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>
    

  5. Close the file and save the changes.

The finished PluginDeployment.xml can be found here.

< Previous | Next >


+

Search Tips   |   Advanced Search