Page 1 of 1

ShopSite Validatin of Credit Card Numbers

PostPosted: Wed Apr 14, 2004 8:21 am
by Larry Bohen
Can ShopSite tell whether a CC number is correct in the online order
process? Expiration date correct? Name on card correct?
--
Larry Bohen
www.audiobooksonline.com

Re: ShopSite Validatin of Credit Card Numbers

PostPosted: Wed Apr 14, 2004 12:34 pm
by loren_d_c
Larry Bohen wrote:

Can ShopSite tell whether a CC number is correct in the online order
process? Expiration date correct? Name on card correct?


ShopSite itself? No, that is the function of a real-time payment gateway
like Authorize.net, VeriSign Payflow Pro, Cardservices
International/LinkPoint, etc.

All ShopSite can do without the payment gateways is 1) make sure the
expiration date is prior to the current date, which it does by not
allowing an expiration date older than the current year and month, 2)
make sure a name is provided, and 3) check the card number to make sure
it is the right number of characters for the card type selected and that
it starts with the correct numbers for a card of that type.

-Loren

Re: ShopSite Validatin of Credit Card Numbers

PostPosted: Wed Apr 14, 2004 3:51 pm
by Larry Bohen
I had new employee place an order (like a real customer would) to
familiarize him with the order process. He entered his VISA & Discover
numbers (two separate orders) with just one of the digits (at the end)
different than his actual number. He also entered valid expiration dates....
He got "enter valid card number" messages each time. Any idea why he would
get this message?

--
Larry Bohen
www.audiobooksonline.com
"Loren" <loren_d_c@yahoo.com> wrote in message
news:c5k3om$gkg$1@support.shopsite.com...
Larry Bohen wrote:

Can ShopSite tell whether a CC number is correct in the online order
process? Expiration date correct? Name on card correct?


ShopSite itself? No, that is the function of a real-time payment gateway
like Authorize.net, VeriSign Payflow Pro, Cardservices
International/LinkPoint, etc.

All ShopSite can do without the payment gateways is 1) make sure the
expiration date is prior to the current date, which it does by not
allowing an expiration date older than the current year and month, 2)
make sure a name is provided, and 3) check the card number to make sure
it is the right number of characters for the card type selected and that
it starts with the correct numbers for a card of that type.

-Loren

Re: ShopSite Validatin of Credit Card Numbers

PostPosted: Wed Apr 14, 2004 4:18 pm
by loren_d_c
Some of the first characters in the credit card number are a checksum
for some of the later numbers, I believe. I am not familiar with the
algorithm enough to quote it, but there is an industry standard mod10
algorithm that can be used to determine if a card number could possibly
be a valid number (doesn't mean the card is valid, though). ShopSite may
use this test internally on the card number when it is submitted, and
display a non-JavaScript error if it doesn't pass the algorithm check.
The JavaScript function that you can see in the source of the checkout
screen, however, only checks the length of the number and the first
couple of characters.

For testing, I would suggest a Visa card number of 4111 1111 1111 1111
and any name and any (future) expiration data. This will pass any
ShopSite tests, and even most real-time credit card gateways will accept
this number when the gateway account is set to test mode.

-Loren


Larry Bohen wrote:

I had new employee place an order (like a real customer would) to
familiarize him with the order process. He entered his VISA & Discover
numbers (two separate orders) with just one of the digits (at the end)
different than his actual number. He also entered valid expiration dates....
He got "enter valid card number" messages each time. Any idea why he would
get this message?