简体   繁体   English

交易失败后主机是否应增加ATC(应用程序事务计数器)(EMV标签9F36)?

[英]Does host should increase ATC (Application Transaction Counter) (EMV tag 9F36) after unsuccessful transaction?

The host update the ATC after success transaction and the counter on the ICC and in the host DB is the same in this moment. 成功事务后主机更新ATC,ICC和主机DB上的计数器此时相同。

But, does host should increase/update the ATC in the own DataBase after not success transaction (for example after transaction with not correct PIN) because the counter on ICC is increased? 但是,主机应该在非成功事务之后(例如在没有正确PIN的事务之后)增加/更新自己的DataBase中的ATC,因为ICC上的计数器增加了吗? Or host shouldn't change the ATC after it. 或者主持人不应该在它之后更改ATC。

I didn't find answer into any EMV book. 我没有找到任何EMV书的答案。

One of the big objectives of emv transaction is to stop replay transactions. emv事务的一个重要目标是停止重放事务。 The authenticity of a transaction is verified using Authorization Request Cryptogram and ATC is a component of its generation and obviously in its validation. 使用授权请求密码来验证事务的真实性,并且ATC是其生成的组成部分,并且显然在其验证中。

Now, chip increments the ATC every time you issue a Get Processing Options. 现在,每次发出获取处理选项时,芯片都会增加ATC。 So when you receive a transaction online, it is expected that the ATC for the transaction is always higher than the last ATC you have at issuer. 因此,当您在线收到交易时,预计交易的ATC始终高于您在发行人处的最后一个ATC。 If it is same or lower than what stored at issuer for the card, the transaction is probably a replay. 如果它与卡的发行者存储的相同或更低,则交易可能是重播。

The Host system should update its internal track of the chip ATC any time it is confident that it has received an authentic ARQC from the chip, to the new value received from the chip. 主机系统应该在确信它已经从芯片接收到真正的ARQC到从芯片接收的新值时更新其芯片ATC的内部轨道。

Remember that the ATC from the chip is always the correct value, so if you as the host received a message with an unexpected ATC value that you can be sure came from the chip, even if the actual transaction fails for some other reason (ie insufficient funds), you should always update the host tracking value to that value received from the card. 请记住,芯片中的ATC始终是正确的值,因此如果您作为主机收到了具有意外ATC值的消息,您可以确定它来自芯片,即使实际交易因某些其他原因而失败(即资金),您应该始终将主机跟踪值更新为从卡收到的值。

The ATC reflects the number of transactions initiated (via the GET PROCESSING OPTIONS call) against the chip across its whole life, and not the number of successful transactions. ATC反映了在整个生命周期内针对芯片发起的交易数量(通过GET PROCESSING OPTIONS调用),而不是成功交易的数量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM