The online community for software testing & quality assurance professionals
   
Active Topics Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Jobs
Training
News
Links
Downloads

News Group:
software.testing


Testing
Automation
Performance
Engineering
Miscellaneous
Statistics
Poll
  QA Forums
  SilkPerformer
  Valid credit card numbers

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Valid credit card numbers
acca
Member

Posts: 14
Registered: Jan 2001

posted 04-02-2001 07:47 AM     Click Here to See the Profile for acca   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by acca
Hi! Is it possible in SilkPerformer to create about 100 VUsers with different but valid credit card numbers? Or should I ask everyone to give me theirs in my company?

------------------

IP Logged

AJ
Moderator

Posts: 1552
Registered: Jun 1999

posted 04-02-2001 07:59 AM     Click Here to See the Profile for AJ   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by AJ Visit AJ's Homepage!
Valid you mean actual real credit card numbers that will order... Probably not! Your best bet is your manager since he must have 100 credit cards laying around unused

You can always build the credit card numbers...

4024+Random Number

------------------
AJ Alhait
BetaSoft Inc.

IP Logged

acca
Member

Posts: 14
Registered: Jan 2001

posted 04-02-2001 08:01 AM     Click Here to See the Profile for acca   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by acca
Thank you!

------------------

IP Logged

PatHyland
Member

Posts: 31
Registered: Mar 2001

posted 04-02-2001 02:58 PM     Click Here to See the Profile for PatHyland   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by PatHyland
There are also 'valid' credit cards numbers which each system sets aside for testing. For example, for Visa, the numbers 4444-3333-2222-1111 and 4111-1111-1111-1111 are recognized as valid for test purposes. A little researc with your processing provider should turn these up.

------------------
Pat Hyland

IP Logged

Raghuram
Member

Posts: 29
Registered: Dec 2000

posted 04-03-2001 01:13 PM     Click Here to See the Profile for Raghuram   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by Raghuram
I remember the discover card nummbers always start with 6011 (ofcourse I am not so sure).

Thanks,
Raghu.

------------------

IP Logged

Bruce
Member

Posts: 91
Registered: Oct 2000

posted 04-05-2001 07:07 AM     Click Here to See the Profile for Bruce   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by Bruce Visit Bruce's Homepage!

CardVaildation.zip

 
To create a valid credit card number you need it to pass the following basic test.

if you number the digits of the card.
1 2 3 4 5 6 7 8 9 10 11 12 13

for a 13 digit visa.

Take every other digit and multiply it by two then if the result is > 10, add the digits together.
Sum all these results and also add in the digits you didn't double.

If the result is divisble by 10 then it passes the luhn digit test.

You can download credit card generators/validators from various places on the web (legitimate or not!)

for 16 digit visa: double odd digits
for 13 digit visa: double even digits
for 15 digit amex: double even digits

I have attached a spreadsheet which demonstrates the test.

Regards,
Bruce.

------------------

IP Logged

Bruce
Member

Posts: 91
Registered: Oct 2000

posted 04-05-2001 07:19 AM     Click Here to See the Profile for Bruce   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by Bruce Visit Bruce's Homepage!
From: Webopedia

Luhn formula

Based on ANSI X4.13, the LUHN formula (also known as the modulus 10 -- or mod 10 -- algorithm ) is used to generate and/or validate and verify the accuracy of credit-card numbers.

Most credit cards contain a check digit, which is the digit at the end of the credit card number. The first part of the credit-card number identifies the type of credit card (Visa, MasterCard, American Express, etc.), and the middle digits identify the bank and customer.


To generate the check digit, the LUHN formula is applied to the number. To validate the credit-card number, the check digit is figured into the formula.


Here's how the algorithm works for verifying credit cards; the math is quite simple:


1) Starting with the second to last digit and moving left, double the value of all the alternating digits.


2) Starting from the left, take all the unaffected digits and add them to the results of all the individual digits from step 1. If the results from any of the numbers from step 1 are double digits, make sure to add the two numbers first (i.e. 18 would yield 1+8). Basically, your equation will look like a regular addition problem that adds every single digit.


3) The total from step 2 must end in zero for the credit-card number to be valid.


The LUHN formula was created in the late 1960s by a group of mathematicians. Shortly thereafter, credit card companies adopted it. Because the algorithm is in the public domain, it can be used by anyone.


The LUHN formula is also used to check Canadian Social Insurance Number (SIN) validity. In fact, the LUHN formula is widely used to generate the check digits of many different primary account numbers. Almost all institutions that create and require unique account or identification numbers use the Mod 10 algorithm.

------------------

IP Logged

Bjoern Wiechmann
Member

Posts: 20
Registered: Oct 1999

posted 05-19-2001 06:23 AM     Click Here to See the Profile for Bjoern Wiechmann   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by Bjoern Wiechmann Visit Bjoern Wiechmann's Homepage! UIN: 79512085
the valid numbers are in a pattern as follows:
MASTERCARD Prefix 51-55 Length 16
VISA Prefix 4 Length 13, 16
AMEX Prefix 34 or 37 Length 15
Diners Club/Carte Blanche Prefix 300-305 or 36 or 38 Length 14
Discover Prefix 6011 Length 16
JCB Prefix 3 Length 16
JCB Prefix 2131 or 1800 Length 15
Last number is a checksum, generated as described by Bruce.

This is common available informations, as most credit card verifications are using this for a quick check - whats not in this pattern should not be a valid number. Only the special credit card institute can give the answer if a number is a real credit card.

BUT be aware of using this generated numbers for real world shopping (or for testing on systems under production environment), you might generate an existing number which will lead you to jail at highspeed .... ;-)

------------------

IP Logged

All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A Reply
Hop to:

Contact Us | BetaSoft Inc. | Privacy Statement

Copyright 1997-2003 BetaSoft Inc.


Ultimate Bulletin Board 5.45c