Testing the payment plug-in

In this step, you will test the payment plug-in you created.

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, or Restart if the server is already started.
  4. In a new browser window:
    1. Enter the following URL to go to the Madisons starter store:
      
      http://localhost/webapp/wcs/stores/servlet/Madisons/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 12.
      • In the Expiration year field, select 2015.

      The Order summary page

    3. Click ORDER NOW. Confirm that you see the Order Confirmation page with the following message:
      "Thank you for your order!
      You will receive a confirmation by e-mail to verify your order."
      
    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 12.
      • In the Expiration year field, select 2012.
    5. Submit the order. Confirm that you see the following error message:
      "Error: The expiry date is incorrect."
  5. In the Enterprise Explorer view, expand JAX-RPC right-click PSPSimEJB: PSPSimService; then click Test with Web Services Explorer.
  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:

      Transaction data returned by payments plug-in