In order to utilize the End Of Day tipping feature, it will first need to be enabled via NMI's TMS. Please reach out to NMI support if you have any questions regarding this.
Payment Device SDK API Calls
Once you have successfully processed a sale transaction using ClientHelper.startTransaction( )
, you will need to call ClientHelper.confirmTransaction( )
two separate times.
First Confirm
The first confirmTransaction( )
should be called with the following mandatory parameters:
ParameterSet.add(ParameterKeys.Reference, string userReference) ParameterSet.add(ParameterKeys.CloseTransaction, "false")
This will partially commit the transaction and allow it to be refundable.
Second Confirm
The second confirmTransaction( )
should be called with the following mandatory parameters:
ParameterSet.add(ParameterKeys.Reference, string userReference) ParameterSet.add(ParameterKeys.Gratuity, string gratuityAmount) ParameterSet.add(ParameterKeys.CloseTransaction, "true")
This will add the gratuity and fully commit the transaction, qualifying it for settlement.
*gratuityAmount
value is in minor units e.g. “123” for $1.23