- Pre-authorization
- Settlement
If you prefer, you can perform the authorization and settlement in just one step. To learn more about this process, visit the Single Step Payment page.
Step 1: Pre-Authorization
In the first step, the host machine uses the EMV Core to authorize a specified amount for the payment operation with the buyer’s card. See the following diagram: The following diagram shows the transaction flow for a pre-authorization:
- The host machine calls the
PreAuthorizemethod using the EMV Core API. This is the only action performed by the host machine. - The EMV Core Polls to the Reader. In the meantime, the Host Application should instruct the Buyer or Shopper to tap the card.
- Request the card from the buyer.
- The shopper or buyer taps the card.
- The Nayax EMV Reader pulls the Response with the encrypted card data to the Nayax EMV Core.
- Nayax EMV Core gets the data and sends it to the Nayax Servers to authorize the amount defined in Step 1.
- Nayax Servers will return the authorized response containing the transaction ID and data.
- Nayax EMV Core will use the event or callback to inform the host application that the transaction was completed, including the transaction ID and transaction data.
The transaction complete callback is used independently of the transaction result. Meaning that if the transaction was approved, declined, or expired due to timeout, the EMV Core will inform you that it was completed.The host machine should check the transaction data to identify the transaction result and manage how to proceed.
Step 2: Settlement
The settlement step is when the final amount is defined and charged to the buyer’s card. The settlement starts after the product is sold or the operation, such as EV charging, is completed. At this moment, the host machine can confirm the transactions. See the diagram below:
- The selling operation is concluded. For example, the product is delivered to the buyer.
- The host application can report the sale to the application server.
- The application server closes the operation section.
- The Host application can now confirm the transaction. The
ConfirmTransactionoperation must be used to inform the transaction ID and the amount to be charged.
The final amount can differ from the amount informed in the pre-authorization. To avoid problems, Nayax suggest using the maximum value at the authorization phase if the final amount related to your selling process may vary.
- Immediately, Nayax EMV Core will confirm and be responsible for the settlement process with the Nayax servers. However, it does not mean that the settlement process has been concluded.
- EMV Core will use the Transaction ID and the amount to confirm the transaction and send them to Nayax servers.
- Nayax servers will immediately return an acknowledgment confirmation to EMV Core. This is necessary to ensure that EMV Core does not need to resend the confirmation message.
If you need to cancel a previously pre-authorized transaction, instead of the host application sends a confirm transaction operation to EMV Core, it need to sends a void operation.