273 points · by dv35z · 9y ago · 323 comments
As mentioned in many comments online transactions will be an order of magnitude slower, as they need to be sent to the issuer, have their cryptogram verified and the challenge response returned if the card does host authentication - which most do these days.
The entry mode generally does not determine how a transaction is authorised - chip, PayPass (NFC) and stripe can either be off or online. In fact stripe transactions are invariably online unless you want your business to be overrun with fraudsters. One of the prime reasons in the early days of EMV was to have it so safe that offline transactions were fraud proof - or close to. Naturally this noble goal was shot full of holes the moment real fraudsters got to it. However, the card is personalised with various limits and counters and with the possibility of using an offline PIN, which combined with the static authentication does give reasonable protection for low value offline transactions. Fun fact - in the initial spec this offline PIN was communicated between the terminal and the card in the clear. What could possibly go wrong :-). These days it is encrypted.
Anyhow enough blather - hopefully this has given a bit of insight.
The difference is probably faster data connections and more efficient protocol implementations, I would think.
[0]: For some reason receipts here contain quite a lot of information on what happens behind the scenes if you know how to read it. I hope this link keeps working, it contains exercepts of receipts merchants give you here: http://docplayer.org/storage/33/16568026/1498495227/GbAKHYXN... With that information you can e.g. see which steps were perfomed offline.
Living in Canada, I tend to notice a wide variability in the response times of ATMs to withdrawal requests (i.e. the time between when you finalize the transaction request, and when it spins up the bill spitter) and I think the one factor I've noticed it coming down to is the number of interchange networks marked as being supported on the side of the machine.
The ones that just do Interac (the Canadian interbank debit-transaction network) are quite quick; the ones that do Interac and PLUS or Cirrus are slower; the ones that add support for cash advances on plain credit cards by supporting individual CC companies (Visa, AMEX) are slowest of all.
So, maybe it's not the number of applications on the card, per se, but rather the number of applications supported by the terminal, with some sort of O(N^2) interaction between them?
Have they decided to accept the risk of offline processing to speed up their checkout process?
That is, what brand of terminal does walgreens use vs. safeway ?
In this late year of 2017 I know that many new NAS devices use cheap processors that make it difficult for them to run rsync over ssh ... it's too computationally expensive to encrypt the data stream at a high network speed.
If NAS vendors make that decision I wouldn't be surprised if some payment terminal vendors make similar decisions ...
How do you encrypt a 4 digit number (PIN) in a way that is resistant to brute force recovery?
What you don't do is shove the 4 digit number straight into an ECB mode cipher.
Oh gosh, this feels just like my crypto finals :(
At least that's how I'd do it.
Also there was a great episode of the podcast “Planet Money” a while back which goes into detail on your question [0]:
> Today on the show, we bring you a brief history of what's in your pocket. It's a story of convenience vs. fraud—and it also includes a hippie inventor, the origin of the last great upgrade on your card, the magnetic stripe, and why it takes so long to "dip the chip."
[0]: http://www.npr.org/sections/money/2016/04/13/474135422/episo...
90% of the places I use a card in seem to be still swiping the cards, while we have had full chip + PIN implementation here (Ireland) since at least 2005 or 2006.
I'd say U.S. banking is, if nothing else, generally at the forefront of digital technology despite heavy regulation
I wouldn't call checks, which are still widely used in the US the forefront of digital technolgy.I think it must have been more than 10 years ago since I've seen my last check and that was an Amex Traveller Cheque
Transferring money with ACH takes multiple business days, this is not at the forefront of digital technology.
Is this really true? I thought the US only started getting chip and PIN about 4 or 5 years ago?
Might be wrong, just my assumption based on contactless payment being almost instantaneous (like that petrol station).
However, using a contactless chip card is still a lot slower compared to using an Oyster card. Where as the Oyster card seems to process in a matter of milliseconds, the contactless card takes perhaps 2 seconds or more.
With a long queue of people all using contactless, this potentially adds up to quite a significant delay at the ticket gates.
The really slow ones just used dial-up. They mostly seem to be gone now.
With a magnetic card, after you slide your card, you can put your card immediately in your wallet, while the Point-Of-Sale solution authorizes with the electronic payment host in the background.
With a chip card (EMV card), the EMV spec required the Point-Of-Sale solution to write an authorization number to the chip card. This means you need to leave your card inserted in the PIN pad until the payment host authorizes. Authorization usually takes 2-3 seconds.
To improve this perception, the industry came up with Quick Chip, which Point-Of-Sale software companies started to work on recently. With Quick Chip, the POS software doesn't need to write the payment host authorization number to your card chip anymore. You insert your card, account number is read, you take your card from the PIN pad immediately without waiting for payment host authorization.
-Software engineer working at a Point-Of-Sale software company.
The question seemed more along the lines of "Why does it take 2-3 seconds to authorize?"
Others have laid out reasons for the 2-3 seconds.
Card Block, PIN Change or Unblock, Update other data
I haven't read the full Quick Chip spec, but here is my guess (take it with a grain of salt):
If card issuers are not able to update the card, then they won't be able to block the card. If the card is misused (e.g. stolen), there is a very small chance of retailers accepting fraudulent payments, but at least the following conditions should be met: 1. The POS solution should be offline from the authorization host, 2. The card should allow offline authorization and it has a "max offline amount" configured, 3. The sales amount does not exceed the configured offline amount in the card.
Most payment terminals are connected to 3G or 4G mobile networks, and from tapping the card to confirmation of payment takes two seconds tops.
Transactions over $100 do require the PIN, but you can usually enter that on the terminal without being required to insert your card.
The truly weird .au thing is that many merchants take your card and tap it for you. A holdover from the days when people got confused by all the options in swiping/inserting and selecting an account.
If it's slow in the US I would expect it's merchants choosing not to upgrade their terminals.
Chips were introduced in France at a time where connecting all terminals wasn't practical/cheap. For this historical reason, most payment terminals aren't processing the transaction online in presence of a domestic card, even if they can. Offline transactions are very quick.
Like I say elsewhere this is very likely a regional thing, having to do with regulations that either require the transaction to be completed in one go, or permit it to be stored in a batch to be processed overnight.
I live in the UK and travel around the EU a bit (France, Italy, Greece, Belgium recently) and I've never noticed chip-and-pin being slow in any way. That's because in most of those countries at least, as far as I can tell, transactions are stored and processed in overnight batches instead of being sent online to be dealt with immediately, which may take a long time depending on the network connection etc.
From what I understand, most places outside the EU don't do batch, they send the transaction online to be completed immediately. Which can take quite a bit longer.
The card and the pinpad together make a decision about whether to send the transaction online or keep it offline and this decision may involve the connection speed of the device and the amount of money you spend.
So, in some cases you might check your account and notice that the money has not been taken out yet. Or you might not even check because the amount you spent was very low.
Obviously, if the connection speed is high enough there's no point in staying offline, so you'll always see your balance changing pretty much instantly. But, like I say, this depends on where you're shopping, what you're buying and what card you're using.
On most terminals, using a US debit card (Chase at least), you can press the green button without entering a PIN and it lets you through. Doesn't ask for a signature either.
Contactless POSes aren't really a thing though apart from Santander I think.
Of course that has nothing to do with the chip-based authentication.
I think there were a few processors with protocols that were chatty enough that the time spent negotiating 56k might have been worthwhile. I remember the Gensar and FDMS protocols mostly being sane but there were a couple others that were "hey look at this BBS software I adapted to be a credit card processor for some reason."
Maybe I'm just showing my age here, but if it were a hardware problem, it seems weird that the US would still have the launch woes Europe had over ten years ago.
Ha. That doesn't surprise me at all - "It's too hard or expensive for the US to change compared to other nations" is not an uncommon argument for opponents of change.
It used to drive me insane when I first moved here now but is now one of the quirks I love about the US - people aren't Luddites they just really value a national sense of individualism and urge to seek their own solutions!
I don't know about the EU, but US stores did this too. It has nothing to do with chip transactions being slow though. My chip card will not work when swiped at a chip-enabled PoS terminal. The issue, in the US at least, is that stores updated the physical terminal before (sometimes long before) enabling chip transactions at the processor level.
https://en.wikipedia.org/wiki/Mondex
The banks outfitted buses, bars, pretty much everywhere with readers but even after inducements to use it such as half price beer(!) it still failed. Why? Because it was soooo slow. Waiting for ~45 seconds at the bar for a payment to go through got old really fast. It barely lasted a year.
I'd have thought the friction of the payment would have been a lesson learned, but here we are 22 years later and it's still a pain.
At Aldi specifically it wouldn't be useful as you have to keep up with the cashier's scanning speed while bagging. In other stores you can start bagging at the end. Not sure why they don't use the same idea as Swedish stores. Once I tried inserting my card while scanning in a German store but the machine didn't like it at all.
Or, come to think of it, it probably lowered the likelihood of people using the supermarket loyalty cards so they nixed it.
Until some years ago, most terminals would mirror that. Most prominently, they used to have separate "enter pin" and "verify transaction amount" steps, and included longer delays for displayed status codes. Recent devices have started combining these steps ("Amount: xy. Enter PIN to confirm") and status messages.
Newer use-cases like the contactless qVDSC application have been tuned for better performance, limiting the amount of communication between reader and card.
For more details, have a look at this guide from VISA: https://www.visa.com/chip/merchants/grow-your-business/payme...
Also, I don't remember EMV being slow in the UK, and that was an early adopter of the modern protocol (2004).
A quarter century ago the way grocery retailers implemented credit and debit card payment was a physically separate unconnected terminal, you swiped and entered the amount on the separate terminal, and the only modification to the cash registers or workflow was hitting the "credit" button instead of "cash" when recording a transaction (there was already functionality for a "check" button). So there was no connection. Before credit/debit terminals you'd balance your register at the end of a shift using data from the "check" or "cash" button, afterwards you had a third column the "credit" button transactions, and that figure should match the terminal printout.
Its possible that connecting the systems results in slower speeds for an end user, although not having the cashier hand enter charge amounts saves enough cashier time that the overall system is faster although the end user feels its slower. What I don't understand is beyond some manner of witchcraft why connecting the register to the terminal would be assumed to slow down the process. Unless architecture has staggeringly changed in the last quarter century, the CPU in the cash register is not doing the crypto or running some kind of dialup winmodem, its in sleep mode awaiting an "Ack" or "Nack" while the terminal is doing whatever crypto magic that terminals do.
Not only that, but the Aldi checkout operators are extremely fast at scanning products compared to other supermarkets (at least that has been my experience in the UK).
I also just noticed the dual-conveyor model in operation at a newly-opened Lidl near me yesterday. ALDI here typically doesn't do that--most stores are set up to place groceries (and unfilled bags) directly into a customer cart, and have a nearby counter to bag your groceries at.
Because in Germany it's very fast
ALDI/LIDL are outliers here in Germany. Other supermarket checkouts like Rewe, Edeka, and Kaisers are slower at scanning items. So don't take the speed of ALDI/LIDL cashiers to be indicative of every supermarket checkout in Germany.
Overall, German supermarkets scan items faster than in North America, but ALDI/LIDL are really in their own league. I sometimes think they are faster to scan items than to drop the contents of the belt onto the floor. Impossible to pack in real-time!
I assumed that there must be some further process that it goes through, between telling the credit card reader that it is completed and Monzo getting informed.
Monzo take advantage of this to enable their realtime notifications and related features, otherwise Monzo would receive the notification of the charge up to 48 hours later which would be a significant harm to the UX.
Old stores, especially small mom-and-pop ones, are still stuck with readers built a decade ago, or with modern readers uplinked by POTS. I recently helped my vet switch from an old POTS terminal to a brand-new, DSL-linked one; the speed difference is huge.
However, with chip transactions there are multiple calls for different payment processing flows. For example, a transaction could require 5 round trip request responses from the chip to the payment process meaning 5x the time required.
Paying for the bus for me is offline, whereas in a supermarket it's processed online
Samsung pay even cuts out any knowledge of the reader, just gives a virtual number to the credit card mag reader.
The main practical difference is that you can't update the on-card data depending on the transaction outcome, since the card isn't there any more.
The other kind, AIUI, are indeed the same as the chip transactions, with all that entails.
e: Other posts seem to say that all the contactless transactions are offline, which means no multiple expensive round trips upstream either way, so nevermind.
IIRC it should come down to 0 or 1 roundtrips, depending on the amount and risk profile - in most cases you do an offline authorization where only the chip is involved to verify the txn, PIN(if applicable) and limits; and if you can't do that, then you send an online authorization, get a response, and that's it. There's extra communication afterwards in the workflow, but that happens after the customer has left and has no impact on customer-observed latency.
This is a suspicion, but I think they're slower in the U.S. because a) they're just slower b) the UX is worse. You insert the card, wait, then it asks for a signature (presumably because not all accounts, vendors, and dollar amounts require a signature?). From what I've seen overseas you insert the card, type in your PIN (in parallel to card processing)--so it appears to process more quickly because you're not waiting.
The chip and pin speeds have gotten better but still a ways off.
Connecting via the chip does not reveal enough information to reconstruct a magnetic strip for an ATM to accept, particularly if the machine is a total fake. But if you swipe the magnetic stripe, you can easily clone it exactly.
UK has contactless, but lower limit and from my recent visit, seems to not be as common.
With PIN, the burden of proof is on you - the bank will say you were careless with the PIN and let other people see it, abrogating their responsibility. Even if it's a security vulnerabilty in their system. (Not a theory, this is how it goes in Europe - see Ross Anderson's group's work on this)
Here's their blog post about it at the time (but the YouTube video is down, unfortunately): http://www. lightbluetouchpaper.org/2010/02/11/chip-and-pin-is-broken/
From the paper: "Because stolen cards can be used without knowing the PIN, by our definition, Chip and PIN is broken. We do not believe that the system is broken beyond repair, but neither is it the case that a simple fix will suffice, due to the unmanageable complexity of EMV."
I understand that's how it's supposed to work, but what does the signature accomplish in practice? If anything, a "signature" that even contained recognizable letters, much less anything that looked like my name, would be a sure sign of fraud, because I never enter anything that resembles a real signature.
I'm not sure how it would play out in court if you intentionally make random unattributable scribblings each time. Sounds like something that might be seen as intentional obfuscation.
I haven't followed closely, there may be more / better evidence.
Edit: this article has more on the french case quoted in the above paper: https://arstechnica.com/tech-policy/2015/10/how-a-criminal-r...
I'm guessing a lot of other countries have followed too.
One of the most foolproof ways to win a chargeback claim is not to claim a card was stolen, but merely that you didn't mean for them to charge you. How do you fight that? So for big ticket items we sold online we required a signature, thus (mostly) killing their ability to file that kind of a chargeback.
Of course that's a huge hassle for online sales, but if you're a grocery store and they're already there eh why not.
I like you.
I think it'd be funny to do celebrity signatures, though, but I don't have the patience for it.
https://n26.com/how-realtime-notifications-work/
Each time you use your card for a payment (which is almost instant), you receive a realtime notification within 0.5 seconds.
Never received a (note: I know, we can all make guesses) conclusive answer explaining the difference.
It's a tradeoff between convenience and security, different places will make different choices, but generally competitors within a single market (e.g. UK or Finland) will try to make the same choices so they don't get customers asking why they're slower than a competitor.
Back here in Australia, almost every retailer (including those on 3g eftpos machines) takes < 4s from when i tap my card, to when I can start walking away. So much quicker than cash :-)
Still faster than Bitcoin confirmations though.
(myki is the horrible Melbourne version of the Oyster card. a bungled project from start to finish)
I have an American Express card and a RiteAid rewards card. Here's my checkout flow at the pharmacy:
1. Punch in phone number for rewards card
2. Get prompted to use my "Plenti" points; which require PIN entry
3. Swipe/insert card (most RiteAid terminals used to work with Apple Pay, but had it disabled)
4. Get prompted to use my American Express points. Say no.
5. Enter relevant pharmacy details (DOB, verify pharmacist reviewed prescriptions for you)
6. Remove chip card
7. Sign paper receipt
This UX flow is simply too complicated for a checkout process. It's got way too much friction, and they disable contactless payments to ensure you can't circumvent that.
Making these payments process more quickly is great; but Apple basically already solved that problem with Apple Pay. But it's not effective because it seems that some retailers want more friction in this process.
When I went to China, I was absolutely amazed by how well everything in Shanghai integrated with AliPay. My family was able to go to some restaurants and order + pay with minimal interaction with a waiter.
An extra 0.05% in savings wouldn't matter to a small store, but for a national retailer, it's probably a meaningful amount of revenue.
From my time writing backend banking integrations for a PSP, going on 5 years ago now, the time to authorise a card transaction (that's IP to BT gateway to X.25 network to acquiring bank to issuing bank and back again) would take anything between 0.2 and 1.0 seconds. So I don't believe it's actually down to any complexity in the authorisation steps if the transactions are done online.
I think the delays aren't network related, but more along the lines of the process that is happening. With mag stripe the approval flow was much simpler and happened in fractions of a second end to end. EMV is a different ballgame unfortunately.
This has been a mess since the mid 90s, when I first worked on these things.
Here a cruddy not at all usefule link to the standard:
http://www.cardwerk.com/smartcards/smartcard_standard_ISO781...
There is no possible way it was taking this long for swipe authorizations; or even NFC authorizations which seemed faster than swipe but were probably the same, but more secure.
I still think the U.S. did this exactly wrong. 1. we were late to the game; 2. had started adopting better NFC technology; 3. instead of building on that, regressed to an old slow contact chip-based system; 4. instead of moving directly to PIN entry, retained signing, hence chip & sign, rather than chip & PIN. It's idiotic.
And that's just the customer size idiocy. The merchant idiocy is even worse. They paid for this transition. Not the banks, the processors, or EMV who ensure they make money hand over fist no matter what. If a customer has a chip card, and your POS does not support chip reading, the liability for fraudulent transactions is shifted to the merchant.
It might depend on where you are. Where I am, in the UK, chip card transactions are quite fast. Fast enough to use contactless (tap and go a.k.a. "pay by bonk") where you literally just tap your card on the pinpad and go on your merry way [1].
The difference is that in the UK, transactions are not immediately sent online. I repeat: they're not immediately sent online. So you don't have to wait for the merchant to contact the acquirer, for the acquirer to respond and so on and so forth.
Instead what happens is that you dip, or swipe, or tap your card; the pinpad and the card figure it out between themselves whether you are the rightful owner of the card; the pinpad makes a record of the transaction; and you're told the transaction is "approved", then pick up your goods and go home. Later in the day, the merchant (i.e. an automated process at the store) sends an overnight "batch" of transactions to the acquirer, (i.e. the bank or credit network etc) and the acquirer either transfers the funds directly to the merchant, or blocks out the funds so you can't use them again and they can be transferred to the merchant later.
That's the EMV standard in a nutshell and entirely from memory, with a distance of a good few years from the time I worked for an EMV vendor (we sold a bit of EMV software that went on the Point-Of-Sale machine and handled all of the above). I might be misremembering a few things but I believe the above is mostly accurate.
tl;dr: having to go online for each and every transaction takes forever.
___________
[1] Or of course sometimes do a double take, realise the transaction hasn't gone through, tap again, eyball the pinpad, then possibly insert or swipe etc. Sometimes it doesn't work.
I seem to remember that there is a whole class of cards which are coded as 'online only', meaning that transactions will fail unless they're taken online. The only place I've frequently seen this happen is on trains, where the mobile equipment is sometimes not capable of online transactions, or doesn't have a signal.
Anyway, the point was that these transactions don't appear to be any slower than with any other card I've used, so I'm not totally sure that the speed really is down to not being online.
But I guess the best proof is that if you have zero money in your account you can't actually buy anything with your card, the transaction will get declined immediately(unless you have overdraft, obviously), so the terminal has to check with the bank if you have funds to pay or not.
In short, whether a transaction will go online, stay offline or be denied, depends on the settings on the card (configured by the issuer) and the settings on the pinpad (configured by the acquirer). The two of them together decide what happens.
So in some cases the combined settings on the card may allow offline processing, which is the batch process in my previous comment. Others, like ATMs (according to the article) will always go online, and yet others may set a "floor limit" - a transaction amount above which the transaction should always go online.
Another factor is the "terminal capabilities", so basically connection speed- if that's too slow transactions may default to offline only.
So what I remember must be that if the transaction is under a certain floor limit, or terminal speed, it can stay offline, maximising some speed-vs-risk tradeoff. And what you note, that the card will deny your transaction when you don't have enough money in the bank, is basically the flip side of that.
What would be harder to notice is the cases when a transaction goes through even when you don't have enough money in the bank, e.g. because the amount you spent is below the floor limit for your issuer and acquirer. But I'm not sure what happens after that- is the transaction declined later? Does the bank charge your account as if it's overdrawn?
It's been a while and I don't remember those things very well I'm afraid :0
It does add some risks since the balance is "stale" i.e. may have old info, so it'd be configured that way only if the terminal physically can't connect online all the time, but it's certainly possible.
The point is though, when the pin pad says it's connecting, that usually means the transaction is taking longer than usual. It might also depend on the vendor, for instance, in the Waitrose I never see the connection message whereas in the news agent I always do.
Edit: Typo.
http://www.npr.org/sections/money/2016/04/13/474135422/episo...
Here in Italy, besides "portable" POS that have a SIM card and go through GSM/GPRS (and are "good speed, but not that much fast") now also 3g/4g, the "corded version" can be:
1) Dial in (analogic)
2) Dial in (ISDN)
3) IP connected
The difference between #2 and #1 is like 4/5 times faster ISDN vs. analogic, and the IP (provided that there are no network issues) is instantaneous.
I would say:
1) 5-20 seconds
2) 1-5 seconds (and GPRS is roughly the same, 3g/4g is on the lower side)
3) 0-1 seconds (really, the sheer moment you press the green button, the receipt starts being printed)
Cheers
https://www.ul-ts.com/offerings/knowledge-sharing/white-pape...
Payments for which a PIN is needed are confirmed in the same amount of time and entering the PIN is the slowest part.
Tap based pay has become ubiquitous in Australia, and I love it.
I thought it now depends on the firmware in the card readers, which it seems companies like Index control.
- my wait is annoying, population person-hour waits are breathtaking to consider
- all of my breaches are internet-based anyway, so I don't see how it helps much
If all my CC transactions had an optional, on-the-spot second factor, now we're talking.
card<->reader<->pc/terminal<->transport (ip/phone line/gprs)<->financial switch<->financial institution.
Add to that emv, tripledes etc and it all adds up.
sigh.
Chip readers are a couple seconds with a good setup, and a couple minutes with a bad setup. Blockchains drag that into minutes and hours.
It's very common for bars and restaurants to have a dedicated line for the terminal, but usually they'll skimp on tech (have seen dial-up over POTS or in a fibre-capable premises). Also very common to use 3G or 2.5G.
It'd take a tech all of 5 minutes to diagnose and suggest a fix for 98% of these slow terminals. It's strange seeing businesses not look to fix these issues. If I was a payment provider I'd probably run diagnostics against my customers terminals every day and force poor performing customers to have someone come in and fix it.