I wrote a credit card payment module in Magento .. With debugging, all the transactions that are done works, everything works, but I still can't return to Magento if the payment was successful or declined ..
i have capture and authorize, both are allowed and return "$this".
At the beginning of "capture", i run the "authorize" method (because authorize seems to not be automatically called when i use <payment_action>authorize_capture</payment_action> in the config.xml .. Everything works nice (API calling, authorization and capture), but when all the operations are correctly finished, OnePage Checkout return nothing, its stay on the last checkout page and do nothing, like i didn't pressed the "Place order" button.
So the question is : How do i return to Magento that the transaction (capture and/or authorize) was successful inside my class that extend "Mage_Payment_Model_Method_Cc" ?
Thanks !