Thanks, I was looking for this code.
I think I have it sorted. While is test mode, I can only use a Total cart value of $10. This means I have to comment out shipping calculations.
This is my first time setting up a gateway. Is this the normal proceedure for testing?