Tutorials > Payments > Develop a payment plug-in

< Previous | Next >


Step 11: Testing the payment plug-in

This section refers to testing the payment plug-in.

Prerequisites

Payment Service Provider Simulator

To confirm that the payment plug-in is working properly:


Procedure

  1. Open WebSphere Commerce Developer.

  2. Open the Java EE perspective.

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

  4. In a new browser window:

    1. Enter the following URL to go to the ConsumerDirect store:

      http://localhost/webapp/wcs/stores/servlet/ConsumerDirect/index.jsp
      

    2. Place an order with the following payment information:

      • In the Payment method field, select VISA Credit Card.

      • In the Card number field, type 4111111111111111.

      • In the Expiration month field, select 01.

      • In the Expiration year field, select 2010.

    3. Click ORDER NOW. Confirm that you see the Order Confirmation page with the following message:

      Your payment has been successfully authorized. Thank you for shopping at ConsumerDirect. 
      

    4. Place another order with the following payment information:

      • In the Payment method field, select VISA Credit Card.

      • In the Card number field, type 4111111111111111.

      • In the Expiration month field, select 01.

      • In the Expiration year field, select 2012.

    5. Submit the order. Confirm that you see the following error message:

      A generic payment user exception occurred. The exception is... "The expiry date is incorrect."
      

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

  6. In the Web Services Explorer:

    1. In the Operations section, click getTransactionRecordsByMerchantId.

    2. In the merchantId field, type CDMERCH.

    3. Click Go. Confirm that the Payment Service Provider Simulator has records of transactions corresponding to the order submissions above:

< Previous | Next >


+

Search Tips   |   Advanced Search