Error Message: Credit Card Type Must be between 4 and 20 Characters (244250)
The information in this article 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:
- From the View menu, click Internet Options.
- Click the Content tab, and then click the Payments button.
- Add the new credit card information, and then save the changes.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbprb KB244250 |
---|
|