Tutorials > Payments > Develop a payment plug-in > Payment Service Provider Simulator


Test the Payment Service Provider Simulator

Prerequisites

Import the Payment Service Provider Simulator EAR file into the WebSphere Commerce Developer workspace

Set up the Payment Service Provider Simulator database

Configure the virtual host and transport chain of the Payment Service Provider Simulator Web service

Add the Payment Service Provider Simulator project to the WebSphere Commerce Test Server

To verify that the Payment Service Provider Simulator is deployed successfully:


Procedure

  1. Open WebSphere Commerce Developer.

  2. Open the Java EE perspective.

  3. In the Servers view:

    1. Right-click WebSphere Commerce Test Server and select Start from the pop-up menu, or Restart > Start if the server is already started.

    2. Wait for the status of the server to change to Started.

  4. Select Window > Preferences.

  5. In the left navigator list, select Workbench > Capabilities.

  6. In the Capabilities list, select the Web Service Developer option.

  7. Click OK.

  8. In the Enterprise Explorer view, right-click Web Services > Services > PSPSimService and select Test with Web Services Explorer from the pop-up menu.

  9. In the Web Services Explorer:

    1. In the Operations section, click getCardStatus.

    2. In the cardBrand field, type VISA.

    3. In the cardNumber field, type 4111111111111111.

    4. Click Go. If the Payment Service Provider Simulator is deployed successfully, you should see the following:

  10. Close the Web Services Explorer.


Previous topic:

Add the Payment Service Provider Simulator project to the WebSphere Commerce Test Server


Next topic:

Generate the Payment Service Provider Simulator Web service client project


+

Search Tips   |   Advanced Search