Tutorials > Payments > Develop a payment plug-in

< Previous | Next >


Step 2: Creating the payment plug-in session bean

In this step, we will create the payment plug-in session bean, which will contain the business logic of the payment plug-in.

Prerequisites

Payment Service Provider Simulator


Procedure

  1. Open WebSphere Commerce Developer.

  2. Open the Java EE perspective.

  3. Select File > New > Enterprise Bean.

  4. Make sure that the Session bean option is selected.

  5. In the EJB project field, make sure that MyPaymentPlugin is selected.

  6. In the Bean name field, type MyPaymentPlugin.

  7. In the Default package field, type com.mycompany.payment.plugin:

  8. Click Next.

  9. In the Session type field, make sure that Stateless is selected.

  10. In the Transaction type field, make sure that Container is selected.

  11. Make sure that the Remote client view option is selected. The other two options should be left cleared:

  12. Click Next.

  13. In the Which interfaces should the remote interface extend section, click Add.

  14. In the Select an interface using field, type Plugin.

  15. In the Matching types list, select Plugin.

  16. In the Qualifier list, select com.ibm.commerce.payments.plugin and click OK:

  17. Click Finish.

  18. Close the default.dnx editor. Do not save the changes.

< Previous | Next >


+

Search Tips   |   Advanced Search