Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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.

↑ Back to the top


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

↑ Back to the top


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.

↑ Back to the top


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.

↑ Back to the top


Keywords: KB818144, kbbug, kbfix

↑ Back to the top

Article Info
Article ID : 818144
Revision : 3
Created on : 11/16/2007
Published on : 11/16/2007
Exists online : False
Views : 384