Payment with Pre-Authorization
Payment with pre-authorization is the recommended approach by Nayax due to its more robust process, which makes it safer. It is composed of two steps:
- Pre-authorization
- Settlement
The following sections will detail each step.
Single-step payment
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 certain amount to perform the payment operation with the buyer's card. See the following Diagram:
Where:
- The host machine calls the
PreAuthorize
method 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 EVM 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, informing the transaction ID and transaction data.
Transaction Complete
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.
After receiving the transaction approved, the vendor can proceed with their selling flow. They can provide the product, start charging the vehicle, or perform any other operation. The vendor can also keep the transaction id and transaction data on their servers.
Step 2: Settlement
The settlement step is when the final amount is defined and charged from 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 detailed steps are described 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
ConfirmTransaction
operation must be used to inform the transaction ID and the amount to be charged.
Authorized Amount
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 EMV Core does not need to send the confirmation message again.
Nayax will handle the settlement transaction to ensure the funds are transferred correctly.
Canceling a transaction
If you need to cancel a previously pre-authorized transactions, instead of the host application sends a confirm transaction operation to EMV Core, it need to sends a void operation.
Updated 3 months ago