Multi-Vend with Pre-Selection
With the Multi-Vend flow, your machine can dispense multiple products in a single transaction while remaining in an "Always Idle" state. Customers first select all desired products, then present their payment card. Upon authorization, the vending machine dispenses the selected products, and the session is settled and completed with an appropriate message.
Payment Flow
The diagram below illustrates the complete sequence of events for a Multi-Vend transaction.
Here's a breakdown of the diagram:
- Message to Card Holder: "Please Select a Product."
- Card Holder selects multiple products.
- Vending Machine SDK sends a Multi Vend Request
vmc_vend_vend_request(vend_session_t *session)
to the Nayax Device. - Message to Card Holder: "Please Present Card."
- Card Holder presents payment card.
- 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 authorization response (approved) to the Nayax Device.
- Vending Machine SDK transfers transaction data.
vmc_vend_event_handler_cb(vm_vend_event_on_transaction_info)
. - SDK triggers vend-approved event handler
vmc_vend_event_handler_cb(vm_vend_event_on_vend_approved)
. - The vending machine dispenses the products.
- SDK reports multi vend success
vmc_vend_vend_status(&session, __true)
and completes the sessionvmc_vend_vend_session_complete_lowlevel()
. - Message to Card Holder: "Please Take Product."
- Nayax Device sends settlement requests to Nayax Server.
- Nayax Server forwards settlement requests to the Billing Provider.
- The billing Provider sends a settlement response (OK) to Nayax Server.
- Nayax Server sends settlement response (OK) back to Nayax Device.
- Session ends.
- Message to Card Holder: "Thank you & Goodbye."
See Also
Updated about 4 hours ago