简体   繁体   English

如何从支付应用程序向终端发送多个AID?

[英]How to send multiple AID from a Payment App to a Terminal?

I want to send multiple AID to the terminal from my android payment application. 我想从我的Android付款应用程序向终端发送多个AID。 For doing so how to construct a response message of the select command? 为此,如何构造select命令的响应消息?

Suppose I am getting 00 A4 04 00 0E (14 bytes data) 00 from the terminal. 假设我从终端获得00 A4 04 00 0E(14字节数据)00。 In response, I am sending 6F23840E(14 bytes data)A511BF0C0E610C4F07A00000000310108701019000 . 作为响应,我正在发送6F23840E(14字节数据)A511BF0C0E610C4F07A00000000310108701019000。 Here my AID is A0000000031010. 我的AID是A0000000031010。 If I try to concatenate two AID, terminal immediately cancel the transaction. 如果我尝试连接两个AID,终端将立即取消该事务。 I tried with the following response message for concatenation: 6F30840E325041592E5359532E4444463031A51EBF0C1B61194F07A00000000310108701024F08A0000000031010018701019000. 我尝试使用以下响应消息进行串联:6F30840E325041592E5359532E4444463031A51EBF0C1B61194F07A00000000310108701024F08A0000000031010010018701019000。

I have checked the TLV using TLV Parser. 我已经使用TLV解析器检查了TLV。 Link : https://www.emvlab.org/tlvutils/?data=6F30840E325041592E5359532E4444463031A51EBF0C1B61194F07A00000000310108701024F08A0000000031010018701019000 链接: https : //www.emvlab.org/tlvutils/?data=6F30840E325041592E5359532E4444463031A51EBF0C1B61194F07A00000000310108701024F08A0000000031010018701019000

Can you suggest me how to send multiple AID list to terminal? 您能建议我如何向终端发送多个AID列表吗?

Generally any Payment application returns only its own AID in the response of SELECT command for this application (in Tag 84).This might be the reason that terminal is terminating the processing when you are sending multiple AIDs. 通常,任何Payment应用程序都会在此应用程序的SELECT命令的响应中(标签84中)仅返回其自己的AID,这可能是终端在发送多个AID时终止处理的原因。 It seems like you want to return multiple VISA AIDs. 似乎您想返回多个VISA AID。 you can achieve this with the help of PSE/PPSE kind of applications. 您可以借助PSE / PPSE类型的应用程序来实现这一目标。 In PSE and PPSE you can return multiple AID to terminal and then terminal will issue the SELECT command further to select the available application. 在PSE和PPSE中,您可以将多个AID返回给终端,然后终端将进一步发出SELECT命令以选择可用的应用程序。 Refer EMV book 1 for response construction of PSE/PPSE or any application. 有关PSE / PPSE或任何应用程序的响应构造,请参阅EMV书1。 在此处输入图片说明

Download EMV Book 1,2,3,4,B,C from emvco . emvco下载EMV Book 1,2,3,4,B,C。 These are specifications all expected to adhere to. 这些都是我们期望遵守的规范。

Check 校验

  • 12.2.2 Structure of the PSE, and 12.2.2 PSE的结构,以及

  • 12.3.2 Using the PSE 12.3.2使用PSE

    sections. 部分。 It has got detailed explanation on PSE. 有关PSE的详细说明。 PPSE also works the same way. PPSE也以相同的方式工作。 Go through the above docs, those are great and precise, i have used them for developing an NFC terminal on android mobile. 通过上面的文档,这些文档非常精确,我用它们在android mobile上开发了NFC终端。

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

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