- An initial information retrieval phase
- A subsequent authorization phase
Transaction Flow
To understand the 2 Phases transaction flow, consider the following sequence of events:
- The client application (labeled as DC) initiates the first phase of the transaction by sending a
doTransactionPhase1request to the Nayax Device. - The Nayax Device prompts the CardHolder to present their card by either inserting, showing, or swiping it.
- The Nayax Device responds to the DC with a
doTransactionPhase1response, which contains the card and transaction properties. - After any necessary user interaction (e.g., changes or cancellations), the DC sends a
doTransactionPhase2request to the Nayax Device to complete the transaction. - The Nayax Device sends an authorization request to the Payment Server.
- The payment server processes the request and sends an authorization response back to the Nayax Device, which then relays the Authorization response to the DC.
- At the end of the day, the DC sends a
doPeriodicrequest to the Nayax Device, which communicates with the payment server to complete the day’s batch process. The Nayax Device then sends adoPeriodicresponse back to the DC.