Microsoft KB Archive/244250

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

Article ID: 244250

Article Last Modified on 7/13/2004

-

APPLIES TO


 * Microsoft Site Server 3.0 Commerce Edition

-



This article was previously published under Q244250



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.



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 akz

Keywords: kbprb KB244250

-

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

© Microsoft Corporation. All rights reserved.