We are using the Accept Suite iframe method to integrate the payment form from authorize.net
Everything works well as long as the transaction is successful. For a failed response, the api is not returning action=transResponse to the iframe. IT only returns action=resizeWindow.
we need the failed transaction to direct the user to the right page and also to record the reason for the failed transaction.
I experienced a similar problem when first working in this area.
Make sure that the iframe can communicate with its parent, and make sure the references match.
If you can trace from the response, look at the object structure to make sure it is being handled correctly.
The headers are set correctly, the frame communicator is working perfectly when a transaction is successful. The issue is only when the transaction is not successful. In the above image, I have highlighted three responses. First is the one when the page loads, the second is when the transaction is not successful and the third is when the transaction is successful.
I am expecting action=transResponse to be passed as well when the transaction is not successful.
I know that https://test.authorize.net/... does not handle all transactionRequest(s) the same as the production URLs.
You may need to verify on the phone that your specific URL is supported, and try to explain the best you can what error condition results in an unexpected response body.