Jimmy,
As I was checking the accuracy of the gateway's transaction key in the PHP code on the confirm page, I discovered a space between the last character in the key and the closing (") mark. I deleted the space and everything worked well. I wanted to get back to you ASAP, so that you can get on to others. Many thanks.