Create a payment plug-in

Before creating a payment plug-in for use in WebSphere Commerce, you should:

You can create a payment plug-in with or without WebSphere Commerce, or with or without WebSphere Commerce Developer or Rational Application Developer. The following instructions summarize how to create a payment plug-in using Rational Application Developer. If you are not using Rational Application Developer, follow comparable procedures to do the following steps:

To create a new payment plug-in using Rational Application Developer, perform the following steps:

  1. Create a new EJB project using the EJB 2.0 specification.
    • For the EAR project, enter WC.
    • For available dependent JAR files, include Payments-Plugin.jar.
    The project name should reflect the name of your plug-in.
  2. Create a new EJB bean for the plug-in project. Be sure to specify the bean is a session bean with a stateless session type. The bean creation should generate a plugin_name.java, plugin_nameBean.java, and plugin_nameHome.java files. The bean must implement the methods described in the Plugin interface (see the API information for more information). Your plug-in remote interface must extend the Plugin or QueryablePlugin interface. Be sure to follow the Plugin specification when creating plug-in files.
  3. Build the plug-in project to compile the enterprise bean.
  4. Generate deployment code for the enterprise bean.
  5. Package the plug-in.