If I might offer a suggestion, what I have done and found helpful was to make another site without the checkout.php page. Then use the wizard to generate a checkout page with Authorize. By comparing the two you could potentially speed your development.
I did this with paypal standard, getting something rudimentary working and slowly adding back the stuff from the powerstore.