Amadis

Retail Reconciliation Request

Nexo Retail Module Library now supports two reconciliation types:

  • SaleReconciliation

  • AcquirerSynchronisation

Sale Reconciliation

A sale reconciliation is simply an exchange of totals between the POI terminal and the Sale terminal.

Example of request message:

<?xml version="1.0"?> <SaleToPOIRequest> <MessageHeader ProtocolVersion="3.0" MessageClass="Service" MessageCategory="Reconciliation" MessageType="Request" ServiceID="617" SaleID="ArkosSales" POIID="PreCertificationAmadis1" /> <ReconciliationRequest ReconciliationType="SaleReconciliation"/> </SaleToPOIRequest>

Acquirer Synchronisation

An acquirer synchronisation is a reconciliation and closure of the current period with synchronisation between POI terminal and Acquirers.

Example of request message:

<?xml version="1.0"?> <SaleToPOIRequest> <MessageHeader ProtocolVersion="3.0" MessageClass="Service" MessageCategory="Reconciliation" MessageType="Request" ServiceID="617" SaleID="ArkosSales" POIID="PreCertificationAmadis1" /> <ReconciliationRequest ReconciliationType="AcquirerSynchronisation"/> </SaleToPOIRequest>

 

Upon sending the request, you can refer in RetailHandler.java class in ArkosPay on how the events are managed for a reconciliation request.


A wrapper function has been made available in ASL to get the reconciliation type from the requests.

Depending on the request, we execute the following steps.

if(request.wrap().getReconciliationType() == ReconciliationType.SaleReconciliation) { MaintenanceStartAsync(doGetTotals); } else if(request.wrap().getReconciliationType() == ReconciliationType.AcquirerSynchronisation) { navigate(R.id.toChooseReconciliationType); }

 

 

Once the result is obtained, the data is sent back to the Nexo Retail Module to be constructed using SendReconciliationResponse() function.

An example of a reconciliation response body can be found below. The SDK builds the response with all your schemes supported.

You can also use the third parameter to choose which acquirer result you want to send to the nexo retail module if you have multiple acquirers configured.

Note: The first acquirer starts at 0, the second acquirer at 1, etc;

 

 

 

 

Â