Got it working using the file in that link.
A couple of notes for anyone else trying this, you need to set up a java redirect so that secpay returns to the correct place. You do this by adding -jredir after your secpay mercant name ie if your merchant name is rhinoman01 then you need to put rhinoman01-jredir
If you want to use your own template you need to add a line of code around line 128
PHP Code:
tep_draw_hidden_field('template', 'http://www.secpay.com/users/rhinoman01/template.html
Where rhinoman01 is your secpay account name and template is the name of the file you need to have uploaded to the secure area at secpay.
Hope it helps someone as I spent hours googling to make this work.
Bookmarks