For transactions with an Adyen backend, we get one with the backend_processor_transaction_id = the Adyen auth PSP reference, and one with backend_processor_transaction_id = Adyen capture PSP reference. We seem to luck out and get the auth PSP reference stored in Civi's custom field.
This makes the pending txn resolver take longer than it should and make more API calls than it should, as well as potentially leaves us with inaccurate data.
We should only send one, and try to make sure it has the correct backend processor transaction ID that matches what we store for backend processors.
The markMessageSent function in gatewayAdapter should prevent us sending two messages to the same queue for the same order ID, but it's not doing it.