Microsoft KB Archive/818144

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

Article ID: 818144

Article Last Modified on 11/16/2007

-

APPLIES TO


 * Microsoft Commerce Server 2002 Service Pack 1

-



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 = &quot;checkout.aspx&quot; End If



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section of this article.

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



Steps to reproduce the behavior
 Install Commerce Server 2002 Service Pack 1 (SP1). To do this, visit the following Microsoft Web site and follow the installation instructions:

http://technet.microsoft.com/en-us/commerceserver/bb608760.aspx

 Unpack the Retail 2002 site. Create a new user. 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:// /retail2002

Note  is a placeholder for the server where you unpacked the Retail 2002 site. Start shopping. Add an item to the basket. Go through the checkout process.</li> When the Checkout.aspx page appears, click the Change payment link. You receive a prompt to log on.</li> After you log on, the Paymentselect.aspx page appears. This page contains the credit card information.</li> 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.</li> Click the Change payment link again. The Paymentselect.aspx page appears. This page contains the credit card information.</li> 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.</li></ol>

Keywords: kbfix kbbug KB818144

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.