[SecurePay] How to refund a Direct Post payment programmatically?

I have got an answer from the SecurePay support:

Unfortunately you cannot issue refunds using Direct Post.
XML API has this capability and I have attached the integration guide in case you would like to use the XML API.