The Retail 2002 sample site does not process credit card numbers as expected in Commerce Server 2002 (818144)



The information in this article applies to:

  • Microsoft Commerce Server 2002 SP1

SYMPTOMS

In the Microsoft Commerce Server 2002 Retail 2002 sample site, you must enter the credit card information two times if you log on during the checkout process.

CAUSE

This problem occurs because an error exists in the code of the PaymentSelect.aspx.vb file.

When you click Change on the Checkout.aspx page, the Login.aspx form is called. However, the initialPage parameter is set to Nothing instead of to Checkout.aspx. Therefore, the call to the CommerceApplication.ServerTransfer method is never made. Instead, a redirect occurs that does not save the credit card number that was selected. In this scenario, you must go back and enter the credit card information again.

RESOLUTION

To resolve this problem, add the following lines of code to the Continue_Clicked sub:
'   Handle the case where the customer logs on during the call to Paymentselect.aspx.
'
If (Not me.creditcardnumber Is Nothing) Then
    initialPage = "checkout.aspx"
End If

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.

Solution site changes are not included in Commerce Server service packs.

MORE INFORMATION

Steps to reproduce the behavior

  1. Install Commerce Server 2002 Service Pack 1 (SP1). To do this, visit the following Microsoft Web site and follow the installation instructions:
  2. Unpack the Retail 2002 site.
  3. Create a new user.
  4. In a new Web browser that does not have the user credentials of the user that you created in step 3 cached, visit the following Web site:

    http://your_server/retail2002

    Note your_server is a placeholder for the server where you unpacked the Retail 2002 site.
  5. Start shopping. Add an item to the basket.
  6. Go through the checkout process.
  7. When the Checkout.aspx page appears, click the Change payment link. You receive a prompt to log on.
  8. After you log on, the Paymentselect.aspx page appears. This page contains the credit card information.
  9. Click Continue. A page appears that contains the shipping address and the order information. However, the credit card information does not appear on this page.
  10. Click the Change payment link again. The Paymentselect.aspx page appears. This page contains the credit card information.
  11. Click Continue. The page appears that contains the shipping address and the order information. However, this time, the page also contains the credit card information.

Modification Type:MajorLast Reviewed:12/15/2003
Keywords:kbfix kbBug KB818144 kbAudDeveloper kbAudITPRO