Yeah I've never used that library, so it isn't obvious to me. It could be your authorize.net account isn't configured to allow that particular functionality and there is nothing wrong with the code at all.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.