Questions tagged [credit-card]

is used for questions related to payment cards. Questions regarding security of payment card data may want to consider using the pci-dss tag.

This tag is used with questions related to payment cards.

If your question is regarding security of payment card data, then you may want to consider using the tag.

Note that much of the advice surrounding this topic is region dependent, so it will help if you mention where in the world you are.

FAQs for this tag:
Which payment gateway should I choose

Terminology associated with this tag:
Merchant
Payment Gateway / Service Provider
PCI-DSS

1191 questions
13
votes
5 answers

Can I save credit card secret code in the database?

I need to save the credit card numbers and secret codes of users in the database in plain text ( consensus behind obviously ) for automatic operation made from the server. Is there some problems ? What do I need to be aware of?
xRobot
  • 25,579
  • 69
  • 184
  • 304
13
votes
5 answers

Regular Expression for Credit Card Track Data

Are there any known regular expressions out there to validate credit card track 1 and track 2 data? EDIT: From Wikipedia: The information on track 1 on financial cards is contained in several formats: A, which is reserved for proprietary use of the…
DCNYAM
  • 11,966
  • 8
  • 53
  • 70
13
votes
3 answers

Paypal Payments Standard without creating Paypal account

I want to sell media, and chose PayPal Payments Standard to do it. According to official documentation buyer can make a purchase without paypal account. Just enter card number/CVC, name and some other fields and buy. But when I click on a "Buy now"…
Andrey Regentov
  • 3,687
  • 4
  • 34
  • 40
12
votes
6 answers

Is a credit/debit card number numeric or an integer?

Since a number can also be a decimal this makes me think that a CC number should be an integer. This would make sense as I don't think any credit cards start with 0 and since they all follow the same sort of pattern: 4444333322221111 So I guess…
Ahmed Nuaman
  • 12,662
  • 15
  • 55
  • 87
12
votes
4 answers

How to test credit card interactions?

After reading this answer, I wonder if there's a way to get a "testing" credit card number. One that you can experiment with but that doesn't actually charge anything.
Jay Bazuzi
  • 45,157
  • 15
  • 111
  • 168
12
votes
1 answer

how can i detect 1-time e-credit cards?

I need to detect credit cards that are 1-time credit cards (they become obsolete after the first payment). I know there are some bin ranges database out there. Can you share your experience on this point ? Thank you for your help Jerome Wagner
Jerome WAGNER
  • 21,986
  • 8
  • 62
  • 77
12
votes
2 answers

Should I use the CreditCardAttribute to validate credit card numbers?

Should I use Microsoft's CreditCardAttribute to validate credit card numbers like so? [Required, CreditCard] public string CreditCardNumber { get; set; } Or should I let the payment gateway handle it, or do something else? I ask this after…
Jeremy Cook
  • 20,840
  • 9
  • 71
  • 77
12
votes
1 answer

Stripe card validation behaves differently in development vs. production

I'm having a weird problem with Stripe (on Rails, but the Rails part is probably irrelevant). When I fill out my sign-up form in production with a syntactically valid but non-working card number (e.g. 4242424242424242), I get this response when I…
Jason Swett
  • 43,526
  • 67
  • 220
  • 351
12
votes
4 answers

How to implement 3D Secure (Verified by Visa / MasterCard SecureCode) on Native mobile app (e.g. IOS)

This question is specific to Native mobile applications (e.g. IOS, Android, WP apps that are not actually using a browser to access a web site). We have an existing e-commerce website that takes payment for most of the major credit cards, and it…
Jaans
  • 4,598
  • 4
  • 39
  • 49
12
votes
1 answer

Identify if a "Credit card" or "Debit card" by the card number

I can initially do a check to identify if I have a valid Payment Card Number by performing Luhn check algorithm. But then I need to identify if it is a Credit card or a Debit card to perform the next task accordingly. I understand this depends on…
JibW
  • 4,538
  • 17
  • 66
  • 101
11
votes
2 answers

Android developers fee without credit card?

I've created an application for android, wich took me several months to complete. I've always been thinking that when it'd be done, I could publish it on Android market. Now I went to the website, and found I had to pay €25, wich I was prepared to…
usealbarazer
  • 707
  • 3
  • 10
  • 27
11
votes
1 answer

Is the Scan Credit Card option available on the WebView?

The new iOS8 Scan Credit Card option is great on Safari. Has someone managed to make it work inside a WebView for a web app? I am using a valid SSL certificate, and I am using the correct ID for input filed as described here:…
Idris
  • 600
  • 2
  • 4
  • 16
11
votes
13 answers

Check Credit Card Validity using Luhn Algorithm

I tried to check the validation of credit card using Luhn algorithm, which works as the following steps: Double every second digit from right to left. If doubling of a digit results in a two-digit number, add up the two digits to get a single-digit…
user3126388
  • 171
  • 2
  • 2
  • 5
11
votes
6 answers

Is there a GOOD reason many web sites won't accept credit cards with spaces and dashes in them?

Is there a technical/legal/financial/contractual/design reason for not accepting credit card numbers with spaces in them? So many web sites do not allow you to put spaces or dashes in a credit card number. I've always put this up to sloppy…
Schwern
  • 153,029
  • 25
  • 195
  • 336
11
votes
1 answer

Where can I find magnetic strip (track) test data?

I have written a library of functions that parses track 1 and track 2 data from magnetic strips on cards (credit cards, IDs etc.) as per ISO/IEC 7813. I am looking to test this library rigorously against some valid (but obviously not real credit…
R Ghosh
  • 612
  • 1
  • 4
  • 9