|
The creditcard gem lets you verify credit-card numbers; it does not run the card, but rather checks only its numerical validity. This can be useful in a variety of situations; for example, Web applications that process credit cards need to know if a credit card is valid. Of course, when your credit-card gateway is called, it will verify that the card number is correct. However, this is typically at the very end of the checkout, since you can’t run the card through the gateway until the shopper has confirmed that he wishes to purchase the item. The creditcard gem can be used at any stage of the process, such as on the Payment Details page to catch typing mistakes—in fact, it can be used even without an Internet connection, which could be useful in bulk card-processing applications. The creditcard gem can give instant feedback on the validity of a card—it could even autoselect the appropriate type of card for the user based on the card number.
Last edited by Jeanie : 07-27-2008 at 09:02 AM.
Reason: Spam Link
|