Single Session with Pre-Authorization
In the Pre-Authorization flow for a single vending session, payment authorization is completed immediately after the card is presented, before product selection, and the settlement is performed after the product or service is delivered.
This ensures the transaction is pre-approved, reducing the risk of payment failure after the user has chosen a product. The rest of the process follows product selection, vending, and settlement, similar to the pre-selection flow.
Payment Flow
Visualize the Pre-Authorization process with the diagram below, which illustrates each step of the single vending session flow, from product selection to payment authorization and dispensing.
Below is a breakdown of the diagram:
- Card Holder presents the card to the Nayax Device.
- Nayax Device sends an authorization request to the Nayax Server.
- Nayax Server forwards the authorization request to the Billing Provider.
- The billing Provider sends an authorization response (approved) to the Nayax Server.
- Nayax Server sends the authorization response (approved) back to the Nayax Device.
- Vending machine SDK begins the session and triggers the session begin event handler (
vmc_vend_event_handler_cb(vm_vend_event_on_session_begin)
). - Message to Card Holder: "Please Select a Product."
- The cardholder selects a product.
- Vending machine SDK sends a vend request
vmc_vend_vend_request(vend_session_t *session)
to the Nayax Device. - Vending machine SDK transfers data internally and triggers the transaction info event handler
vmc_vend_event_handler_cb(vm_vend_event_on_transaction_info)
. - SDK triggers the vend approved event handler
vmc_vend_event_handler_cb(vm_vend_event_on_vend_approved)
. - The vending machine dispenses the product.
- SDK reports vend success
vmc_vend_vend_status(&session, __true)
and completes the vend sessionvmc_vend_vend_session_complete_lowlevel()
. - Message to Card Holder: "Please Take Product."
- Nayax Device sends a settlement request to the Nayax Server.
- Nayax Server forwards the settlement request to the Billing Provider.
- The billing Provider sends a settlement response (OK) to the Nayax Server.
- Nayax Server sends the settlement response (OK) back to the Nayax Device.
- The vending session ends.
- Message to Card Holder: "Thank you & Goodbye."
See Also
Updated about 2 hours ago