Delivery Setup for tickets

I want to setup delivery system when a ticket is created and paid without the deliverer selected, the ticket should not be closed(deleted) when the ticket is not paid and deliverer selected, the ticket should not close even after paying.

There is many ways to achieve the same things, but I am guessing you use Delivery entity types that have the name of drivers?

If thats the case, use this constraint in your payment action

'{ENTITY NAME:Delivery}' != ''

I would also add a message box action to inform the user that it hasn’t been closed constraining if a deliverer has been selected.