Принудительный decline offline на банкомате

банкоматы компании NCR

Модератор: central

gy1610
Специалист
Сообщения: 410
Зарегистрирован: 21 апр 2011, 00:32
Откуда: Грузия, Тбилиси
Благодарил (а): 14 раз
Поблагодарили: 8 раз

Принудительный decline offline на банкомате

Непрочитанное сообщение gy1610 »

Тут возникла необходимость в связи с тестированием ADVT сделать операцию decline offline на банкомате. В руководстве есть вариант принудительной отмены:

Application Cryptogram Offline Decline

In some cases, a transaction may be denied on the first Generate Application Cryptogram (GENAC) command, but a Transaction
Request message is still sent to the host. This can occur if the terminal denies the transaction after terminal action analysis
requests an Application Authentication Cryptogram (AAC), or if the card denies the transaction after returning an AAC to the first
GENAC.
In these circumstances, the chip transaction completes offline but the NDC environment means the terminal may pass the information the host and wait for it to instruct the terminal how to complete the transaction.
For example, the required information could include screens to display, next state number, any journal data, and so on. The
terminal does not have sufficient local information to complete thistransaction.
By going online, the terminal is simply requesting the host to complete the NDC transaction; the transaction is already complete
according to the ICC.
The NDC host should recognise this request, and in these specificcases should not involve the card¡¯s issuer, but deal with the requestitself and simply close down the transaction. The host can identify these scenarios by checking the Cryptogram
Information Data object sent by the terminal, which for an offline decline is set to .00., that is, AAC.
Additionally, if the "service not allowed" bit is set in the Cryptogram Information Data object, the same host behaviour is expected. CAM data is not expected in the Transaction Reply.
In these scenarios, the relevant "CAM Flags" (byte 1 bit 5) will be set to 0x1 to enable the host to identify the scenario.
Offline Behaviour
It is possible to configure the terminal to decline these transactions without sending a message to the host, using parameters in the
transaction request state or the Wndows registry. If the offline decline next state number (table entry 2 of the 2nd
extension to the transaction request state) is non©\zero, the terminal will proceed to the offline decline next state number.
If the offline decline next state number (table entry 2 of the 2nd extension to the transaction request state) is zero or the extension
state is not configured, the terminal will check the registry key .HKEY_LOCAL_MACHINE\NCR\APTRA\EMV Exits\Decline..
This key may contain the offline decline next state number to which the terminal will proceed.
The registry key will be interpreted as follows:
If there is a string value of length three which matches the current transaction request state number, and the data is also
of length three, the terminal will use the data in this value as the state number.
If no value which matches the transaction request state is under this key, then the terminal will look for a string value
.default., and if its data is length three it will be used for thenext state number. Otherwise all relevant ICC data will be
sent to the host.


Вопрос: кто-нибудь делал такую операцию? И если да, то растолкуйте, что именно прописывать в регистре.
booby
Специалист
Сообщения: 391
Зарегистрирован: 21 янв 2013, 07:14
Поблагодарили: 1 раз

Re: Принудительный decline offline на банкомате

Непрочитанное сообщение booby »

Вопрос: кто-нибудь делал такую операцию? И если да, то растолкуйте, что именно прописывать в регистре.
Вы цитируете документ AANDC EMV ICC Reference Manual.
Там всё довольно подробно расписано. Только реестром вашу задачу не решить.

Если вы хотите, чтобы при decline offline терминал прерывал операцию до ввода ПИНа и суммы, вы должны прописать в сценарии 6-й и 7-й элементы таблицы в Exit Path Extension State для .-State
Если вы хотите, чтобы при decline offline терминал не отправлял запрос транзакции на хост, вы должны прописать в сценарии 2-й элемент таблицы в Extension State-2 для I-State

В общем, вам надо почитать вышеупомянутый мануал. И разобраться с веткой сценария, которая отвечает за обработку чиповых карт.
gy1610
Специалист
Сообщения: 410
Зарегистрирован: 21 апр 2011, 00:32
Откуда: Грузия, Тбилиси
Благодарил (а): 14 раз
Поблагодарили: 8 раз

Re: Принудительный decline offline на банкомате

Непрочитанное сообщение gy1610 »

Спасибо за консультацию. Данный вопрос с VISA мы урегулировали, тестирование зачтено. Но все равно интересная тема, как немного появится свободное время, буду разбираться. :good:
Ответить