Can't Use Expiration Date after 2003 with Non-Wallet Purchases on Sample Sites and Site Builder Wizard (258266)



The information in this article applies to:

  • Microsoft Site Server 3.0 Commerce Edition

This article was previously published under Q258266

SYMPTOMS

When you make a credit card purchase (using HTML native controls rather than the Microsoft Wallet object) on a sample site or a site built with the Site Builder Wizard, the last year in the Expiration Date drop-down list box is 2003. The means that credit cards that expire after 2003 cannot be used.

CAUSE

This issue occurs because the years that are displayed in the Expiration Date list box are hard coded.

RESOLUTION

To resolve this issue, modify the file (usually an ASP file) that generates the years that are displayed in the Expiration Date list box to include years after 2003.

NOTE: Additionally, if the site uses another file to perform validation of the purchase, then that validation file may need to be updated too.

For example, the xt_orderform_purchase.asp file, used by some sites, checks if the expiration date is null. If it is, then a message is displayed instructing the user to provide an expiration date between 1997 and 2003.

Example: How to modify the Clocktower sample site expiration date

To modify the Clocktower sample site so that the year 2004 is also displayed, open the Purchase.asp file, which is located in the InetPub\Wwwroot\Clocktower folder, and then locate the following code:
<SELECT NAME="_cc_expyear">
    <% = mscsPage.Option(1997, iyear) %> 1997
    <% = mscsPage.Option(1998, iyear) %> 1998
    <% = mscsPage.Option(1999, iyear) %> 1999
    <% = mscsPage.Option(2000, iyear) %> 2000
    <% = mscsPage.Option(2001, iyear) %> 2001
    <% = mscsPage.Option(2002, iyear) %> 2002
    <% = mscsPage.Option(2003, iyear) %> 2003
</SELECT> 
				
Change it as follows (note that the last line has been added to include the year 2004):
<SELECT NAME="_cc_expyear">
    <% = mscsPage.Option(1997, iyear) %> 1997
    <% = mscsPage.Option(1998, iyear) %> 1998
    <% = mscsPage.Option(1999, iyear) %> 1999
    <% = mscsPage.Option(2000, iyear) %> 2000
    <% = mscsPage.Option(2001, iyear) %> 2001
    <% = mscsPage.Option(2002, iyear) %> 2002
    <% = mscsPage.Option(2003, iyear) %> 2003
    <% = mscsPage.Option(2004, iyear) %> 2004
</SELECT> 
				

MORE INFORMATION

The following lists contain some of the files that have the year 2003 hard coded as the last expiration year. Please note that these files may be located under different subfolders, and can appear more than once.

Site Builder Wizard files

The following files are located in various locations in the Microsoft Site Server folder:
  • Pay_form.asp
  • Pay-form.asp
  • Payment.asp
  • Picker_year.asp
  • Purchase.asp
  • Wz_pipeline_config.asp
  • Xt_orderform_purchase.asp
  • Global.ast
  • Payment.ast
  • Picker_year.ast
  • Xt_orderform_purchase.ast

Trey Research sample site files

The following files are located in the Microsoft Site Server\Sites\Commerce\Tr\Member folder:
  • Payment.asp
  • Picker_year.asp
  • Xt_orderform_purchase.asp

Other sample site files

The following files are located in various locations in the Inetpub\Wwwroot folder:
  • Pay_form.asp
  • Payment.asp
  • Picker_year.asp
  • Purchase.asp
  • Xt_orderform_purchase.asp

Sample sites

The sample sites are as follows:
  • Ad Server
  • Clocktower
  • Volcano Coffee
  • Microsoft Press
  • Trey Research
  • Microsoft Market

Modification Type:MajorLast Reviewed:6/29/2004
Keywords:kbpending kbprb KB258266