Amadis

_FIXED_EMPTY_AMOUNT_SUPPORT_

This Compilation Option allows differentiating between an Empty Tag ‘9F03’ or a Missing Tag ‘9F03’ passed in the Transaction Related Data (TRD)

Enabling _FIXED_EMPTY_AMOUNT_SUPPORT_ add two variables (mIsEmptyAmount and mIsEmptyCashback) in the Structure tPaymentContext

This allows setting along the mCashBack variable the appropriate values according to the Tag ‘9F03’ (and ‘9F02’) passed in the TRD:

  • Tag ‘9F03’ is passed in the TRD with length = 6:

TRD = 9F02 06 000000001000 9C 01 00 9F03 06 000000000100
Then the Payment Context would contain:
payment->mCashBack = 64h;
payment->mIsEmptyAmount = bFALSE;

  • Tag ‘9F03’ is missing in TRD:

TRD = 9F02 06 000000001000 9C 01 00
The the Payment Context would contain:
payment->mCashBack = NULL;
payment->mIsEmptyAmount = bFALSE;

  • Tag ‘9F03’ is passed in the TRD with length = 0

TRD = 9F02 06 000000001000 9C 01 00 9F03 00
The the Payment Context would contain:

payment->mCashBack = NULL;
payment->mIsEmptyAmount = bTRUE;

NOTE: This Fix is only available for Kernels calling the Function pmwInitializeTransactionData() from paymentMW.h

This Compilation Option is available for Framework 3.6 (but could eventually be used on previous Frameworks)