【发布时间】:2019-12-10 16:07:35
【问题描述】:
我想知道如何从借记卡/信用卡智能卡中获取 PAN(主帐号)。 我使用 APDU 命令尝试使用 Maestro 借记卡,并以字节为单位获取数据,以 TLV 编码。 EMV 规范说 PAN 在标签“A5”上,但我没有在该标签上识别它。
APDU 命令:
<<00 A4 04 00 07 A0 00 00 00 04 30 60
>>61 42
<<00 C0 00 00 42
>>6F 40 84 07 A0 00 00 00 04 30 60 A5 35 50 07 4D 41 45 53 54 52 4F 87 01 01 5F 2D 06 65 73 65 6E 70 74 9F 11 01 01 9F 12 07 4D 41 45 53 54 52 4F BF 0C 0F 9F 4D 02 0B 0A 9F 6E 07 08 62 00 00 30 30 00 90 00
解码数据:
6F File Control Information (FCI) Template
84 Dedicated File (DF) Name
A0000000043060
A5 File Control Information (FCI) Proprietary Template
50 Application Label
M A E S T R O
87 Application Priority Indicator
01
5F2D Language Preference
e s e n p t
9F11 Issuer Code Table Index
01
9F12 Application Preferred Name
M A E S T R O
BF0C File Control Information (FCI) Issuer Discretionary Data
9F4D Log Entry
0B0A
9F6E Unknown tag
08620000303000
90 Issuer Public Key Certificate
【问题讨论】:
-
解决办法没那么简单。我必须阅读文档:EMV 支付系统规范,因为数据结构并不总是相同的。 emvco.com/wp-content/uploads/2017/05/…