The problem is that the button is embeded in another form: After the onclick action
finishes (which uses javascript to submits the formAuthorizeNetPopup
form), the button's default action is to submit the form in which it is
contained: and submitting...