无法生成正确的应用程序密码 [英] Unable to generate correct application cryptogram

查看:135
本文介绍了无法生成正确的应用程序密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功获得了生成命令"响应

I am successfully getting Generate Command response

[9F02 06   (Amount, authorized, numeric)]:   000000003000 
[9F03 06   (Amount, other, numeric)]:        000000000000 
[9F1A 02   (Terminal country code)]:         0826 
[95 05     (Terminal verification results)]: 0000000000
[5F2A 02   (Transaction currency code)]:     0826 
[9A 03     (Transaction date)]:              150724 (2015-05-28)
[9C 01     (Transaction type)]:              00 
[9F37 04   (Unpredictable number)]:          12345678

命令是

80 AE 4000 1D 000000003000 000000000000 0826 0000000000 0826 150724 00 12345678 00

反应成功

8012800008d2715ae1b83027db06020103a0b0009000

Cryptogram Information Data : 00
Application Transaction Counter : 0008
Application Cryptogram : d2715ae1b83027db
Issuer Application Data : 06020103a0b000

一切都很好,但是每当我在测试环境中执行事务时,我都会得到

Everything is good, but whenever I perform transaction in the test environment I get

应用程序密码不正确.

The Application Cryptogram was incorrect.

任何帮助将不胜感激.

推荐答案

首先,数据样本中的打包日期MMMMDD格式的交易日期"与人类可读格式(YYYY-MM-DD)的值不同.日期不同.

First of all in your data sample "Transaction date" in packed YYMMDD format is not the same value as in human readable format (YYYY-MM-DD). Dates are different.

如果您发送了不正确的交易数据或与此ARQC不相关的交易数据,则将在主机环境中使密码验证失败.

If you sent incorrect transaction data or transaction data not related to this ARQC you will fail Cryptogram validation at the host environment.

由于在Amex测试用例中使用了金额30.00,因此检测到该卡 作为美国运通全球套装的"AEIPS 20测试卡".

Because of using Amount 30.00 with Amex test cases, the card detected as "AEIPS 20 TEST CARD" from Amex Global set.

使用交易数据"重新计算ARQC的结果与我相同 卡响应中的值-0x9F26 ="d2715ae1b83027db".所以是 确认.

Recalculation of ARQC using the "Transaction data" gave me the same value as in your card response - 0x9F26 = "d2715ae1b83027db". So, it is confirmed.

在这种情况下,ARPC将为"3784BAE0B266DF17".

ARPC in this case will be "3784BAE0B266DF17".

经过认证的测试环境或Amex测试系统(ATS)本身可以为您提供ARQC/ARPC重新计算的详细信息.确保测试环境可以验证您的卡品牌.

Certified test environments or Amex Test System (ATS) itself can provide you the ARQC/ARPC recalculation details. Sure if test environment can validate your card brand.

通常在财务消息和交易数据中发布问题,在其中开发人员错误地打包了这些文件以进行外部测试主机验证. (与您的原始请求一样.)

Issue usually in the financial message and Transaction data inside which developers incorrectly packed for external test host validation. (As in your original request.)

从卡,终端到主机系统全面跟踪交易,您会发现数据错位的地方.

Take full trace of transaction from card, thru terminal to host system and you will get where is data misplacement.

这篇关于无法生成正确的应用程序密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆