issue #23937 voids and credits, issue #13748

Improve handling of void and credit transactions, particularly for externally-generated pre-authorizations. Incidentally fix issue #13748 regarding the default test server for A.N.