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
155
votes
10 answers

Maximum Year in Expiry Date of Credit Card

Various online services have different values for maximum year of expiry, when it comes to Credit Cards. For instance: Basecamp: +15 years (2025) Amazon: +20 years (2030) Paypal: +19 years (2029) What is the reasonable maximum here? Are there any…
Art
  • 23,747
  • 29
  • 89
  • 101
96
votes
1 answer

Stripe - How to handle subscription with a free plan and no credit card required at sign up time

We started to implement Stripe on Redsmin (one of our project) and I think we may have missed something. Here is how it works: To use our product, the user must select a plan (free, s, m, xl, xxl...) then enter its login/password and is then good…
95
votes
8 answers

A worthy developer-friendly alternative to PayPal

I understand payments are a tricky thing, but I'm yet to find a worthy alternative to PayPal. I want to change from PayPal because I think they are expensive and it doesn't work in all countries. Furthermore, I think that the API is sufficient, but…
Daniel
  • 4,918
  • 4
  • 33
  • 34
80
votes
30 answers

Formatting a UITextField for credit card input like (xxxx xxxx xxxx xxxx)

I want to format a UITextField for entering a credit card number into such that it only allows digits to be entered and automatically inserts spaces so that the number is formatted like so: XXXX XXXX XXXX XXXX How can I do this?
Can Aksoy
  • 1,322
  • 1
  • 12
  • 18
75
votes
7 answers

Best practices to store CreditCard information into DataBase

In my country the online payments are not an old thing, the first time i saw a web application taking payments directly to a local bank account was last year. So, Im a newbie coding web payment system. My question is, what are the best practices to…
Garis M Suero
  • 7,974
  • 7
  • 45
  • 68
73
votes
8 answers

What is the best way to validate a credit card in PHP?

Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number? Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be…
Joe Lencioni
  • 10,231
  • 18
  • 55
  • 66
67
votes
15 answers

Determine credit card type by number?

Can credit card type be determined solely from the credit card number? Is this recommended or should we always ask client for the type of credit card they're using? I Googled about it and found this algorithm: http://cuinl.tripod.com/Tips/o-1.htm ,…
Henry
  • 32,689
  • 19
  • 120
  • 221
56
votes
9 answers

When is the Scan Credit Card option available on iOS8 Safari?

So Safari offers Scan Credit Card feature on iOS8 with some credit card forms. My question is, how does Safari determine when to offer this option? So far I found that this option is available on Amazon and PayPal, but none of my credit card input…
Dávid Kaszás
  • 1,877
  • 1
  • 16
  • 20
56
votes
11 answers

Somebody is storing credit card data - how are they doing it?

Storing credit card information securely and legally is very difficult and should not be attempted. I have no intention of storing credit card data but I'm dying to figure out the following: My credit card info is being stored on a server some where…
leepowers
  • 37,828
  • 23
  • 98
  • 129
55
votes
5 answers

Credit card expiration dates in which timezone?

We know from Credit card expiration dates - Inclusive or exclusive? that credit card expires on the last day. However, in which time zone?
Henry
  • 32,689
  • 19
  • 120
  • 221
49
votes
10 answers

Storing credit card details

I have a business requirement that forces me to store a customer's full credit card details (number, name, expiry date, CVV2) for a short period of time. Rationale: If a customer calls to order a product and their credit card is declined on the spot…
Andrew
  • 11,894
  • 12
  • 69
  • 85
39
votes
6 answers

Stripe: No such token.. a similar object exists in test mode, but a live mode key was used to make this request

When using Stripe in live mode I get this PHP error: No such token tok_fgfhn.. a similar object exists in test mode, but a live mode key was used to make this request Everything works well in Stripe test mode, and and I've switched to a live API…
Julien
  • 3,743
  • 9
  • 38
  • 67
39
votes
5 answers

Credit card payment gateway in PHP?

I need to process credit cards and integrate with backend payment services to credit them. The majority of solutions on the internet require an intermediary, eg. 2CO, GCO, Auth.net. Do you have any experience with implementing a credit-card payment…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
38
votes
3 answers

Saving credit card information in MySQL database?

I want to allow my customer users to enter their credit card information so that I can charge them every month. I wonder how one should save this information? Should it be saved in the MySQL database ("user" table) or is this kind of information too…
never_had_a_name
  • 90,630
  • 105
  • 267
  • 383
38
votes
13 answers

Storing Credit Card Numbers in SESSION - ways around it?

I am well aware of PCI Compliance so don't need an earful about storing CC numbers (and especially CVV nums) within our company database during checkout process. However, I want to be safe as possible when handling sensitive consumer information…
JM4
  • 6,740
  • 18
  • 77
  • 125
1
2 3
79 80