Categories
PHP Technology

Credit Card Numbers for Payment Gateway Testing

I recently developed a site that utilized a merchant gateway. I had the gateway in “Test” mode so i could process fake transactions to ensure the system was working properly.

The only fake credit card number I could use was 4111111111111111 which is denoted as a VISA card.

Anyhow, I wanted to make sure I could test with other numbers so I tried putting in random 16 digit numbers. Doing so caused the gateway to return an error, “Invalid Credit Card #”

The reason for this is because the credit card number was not a Mod-10 Credit card number. Mod-10 is used to validate credit card numbers.

Anyhow, here are 2 credit card numbers that you can use for credit card testing when interacting with a payment gateway in test mode:

1. 4111111111111111
2. 4111111111111103

How it verify Mod-10:

1. Take a credit card number and reverse it: 1111111111111114

2. Now multiple each even digit by 2.

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4
_ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2 _ 2

Which is: 2+2+2+2+2+2+2+8 = 22

Note:If any results from your multiples of 2 are 2 digits or greater, then split the digits and add them together
So if 2×6=12 you would add (1+2) not 12
2+2+2+2+ (1 + 2)…

3. Now add the odd digits to 22, 22 + 1 + 1 + 1 +1 +1 +1 + 1 + 1 = 30

4. Now divide by 10

30/10 = 3

Since there is no remainder the card number is Mod-10. If there is a remainder, then the card # is NOT Mod-10

Now with this method you can come up with your own Mod-10 Numbers for testing.

The CVV can be used as 123

'Coz sharing is caring
Categories
PHP

svn status codes

svn status [PATH…]

The first seven columns in the output are each one character wide, and each column gives you information about a different aspect of each working copy item.

For each updated item a line will start with a character reporting the action taken. These characters have the following meaning:

  • U: Working file was updated
  • G: Changes on the repo were automatically merged into the working copy
  • M: Working copy is modified
  • C: This file conflicts with the version in the repo
  • ?: This file is not under version control
  • !: This file is under version control but is missing or incomplete
  • A: This file will be added to version control (after commit)
  • A+: This file will be moved (after commit)
  • D: This file will be deleted (after commit)
  • S: This signifies that the file or directory has been switched from the path of the rest of the working copy (using svn switch) to a branch
  • I: Ignored
  • X: External definition
  • ~: Type changed
  • R: This file got replaced. / Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
  • E: Existed

A character in the first column signifies an update to the actual file, while updates to the file’s props are shown in the second column.

'Coz sharing is caring