06-19-2013 11:56 PM - edited 06-19-2013 11:57 PM
So far I managed to get CIM working with hosted form. I can add CC and save it, edit and delete. I saw in the popup.js that there is a function called AuthorizeNetPopup.onReceiveCommunication and I wanted to use it because of the params["action"] param which returns successfulSave or cancel. But that function is never fired. I start debugging and everything in my client was OK. All events were wired up. Then I started to debug authorize's profile.js. Then I saw why that function was never fired up.
06-24-2013 02:51 PM
In order for these actions to be sent, it's important that you are making use of the "iFrameCommunicator". This communicator is used to relay the actions to your page. You can see an example of this communicator page in the sample code that you referenced. You'll want to make sure that it is being loaded and that it is on precisely the same domain as your main script.
06-27-2013 02:21 AM - edited 06-27-2013 02:21 AM
Of course we do. You can see the code bellow. The problem still remains :(
<div id="divAuthorizeNetPopup" style="display:none;" class="AuthorizeNetPopupGrayFrameTheme">
<iframe name="iframeAuthorizeNet" id="iframeAuthorizeNet" src="~/Content/authorizenet/IframeCommunicator.html" frameborder="0" scrolling="no"></iframe>
<div class="AuthorizeNetPopupLogo" title="Powered by Authorize.Net"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowT"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowR"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowB"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowL"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowTR"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowBR"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowBL"></div>
<div class="AuthorizeNetShadow AuthorizeNetShadowTL"></div>
<div id="divAuthorizeNetPopupScreen" style="display:none;"></div>
06-28-2013 09:05 AM
Bump. I know I am passing values to the GetHostedProfilePage object because I can turn the "hostedProfilePageBorderVisible" feature. For hostedProfileIFrameCommunicatorUrl I am passing the exact same URL as I am in my web.config file except the hostedProfileIFrameCommunicatorUrl value contains contentx/iFrameCommunicator.html.
I've spent an entire day trying EVERYTHING I can think of. I cannot get the IFrameCommunicator.html to fire. EVERYTHING else works fine.
I'm thinking about trying another solution this has me so frustrated.
06-28-2013 01:50 PM - edited 06-28-2013 01:54 PM
08-12-2015 08:38 AM
Never gets called. This shouldn't require so much code foo. It's rediculous the hoops you have to go through to decipher this process.