Error Message: Credit Card Type Must be between 4 and 20 Characters

ID: Q244250


The information in this article applies to:
  • Microsoft Site Server version 3.0, Commerce Edition


SYMPTOMS

When you attempt to perform a purchase from a sample site using certain versions of Microsoft Wallet, the following error message is displayed:

Credit card type must be between 4 and 20 characters.


CAUSE

The sample site uses all lower-case letters for the credit card types. Some versions of Wallet do not transform the data (credit card type) into "Visa" and "MasterCard," which is what the case-sensitive validation routine checks for.

NOTE: This only occurs when you add a new credit card from a sample site during a purchase (and not when you select a pre-existing credit card from the Wallet). The sample site passes the lower-case credit card type to Wallet, which does not transform it to upper and lower-case letters. However, if you add a new credit card using Internet Explorer before making the purchase, the credit card type is stored properly, and the sample site validation routine works correctly. To do this, see the "Workaround" section of this article.


RESOLUTION

Change the line that sets the credit card types, so that the first letter of each credit card is upper case. Specifically, in the Checkout-pay.asp file, change the following line from:


<% strMSWltAcceptedTypes = "visa:clear;mastercard:clear" %> 
to:

<% strMSWltAcceptedTypes = "Visa:clear;Mastercard:clear" %> 
NOTE: In the Volcano Coffee sample site, this is line 38 of Checkout-pay.asp, which is located in the following folder:

Microsoft Site Server
  SiteServer
    Admin
    commerce
      Site Builder Wizard
        CopyBlueprints
          Default
            Vc 


WORKAROUND

To add a new credit card to the Wallet using Internet Explorer, perform the following steps:

  1. From the View menu, click Internet Options.


  2. Click the Content tab, and then click the Payments button.


  3. Add the new credit card information, and then save the changes.



MORE INFORMATION

Additional Error Message

An error message similar to the following may also be displayed:
Commerce.MtsTxPipeline (0x8000401A)
Error loading the pipeline configuration data from the file: e:\inetpub\wwwroot\Vc30\\config\purchase.pcf SQLItemADO -- {1D265C80-77B2-11D0-8D58-00C04FD7A111} The server process could not be started because the configured identity is incorrect. Check the username and password.
/vc30/include/util.asp, line 122

Sample Sites That Use Microsoft Wallet

The Volcano Coffee, Trey Research, and Microsoft Press sample sites can use Microsoft Wallet for purchases.

Additional query words: vc tr mspress store cc errmsg ssce

Keywords :
Version : winnt:3.0
Platform : winnt
Issue type : kbprb


Last Reviewed: November 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.