cancel
Showing results for 
Search instead for 
Did you mean: 

iFrameCommunicator fires-never get successfulSave response from iframe

I finally got my iFrameCommunicator.html to work.

 

However, whenever I save anything in the iframe popup, the only response passed to AuthorizeNetPopup.onReceiveCommunication in the popup.js script file is

"action=resizeWindow&width=425&height=1058"

 

Shouldn't I get "successfulSave" when something gets saved successfully?  Because I only get the resizeWindow response, the iframe popup never closes unless the user clicks X on the popup.

 

It doesn't look like this is anything in my code.  I'm getting the response communication directly from Auth.net via the iFrameCommunicator.html scription.

 

What gives?

 

Joe

 

 

Alg0nquin
Member
2 REPLIES 2

Hi Joe,

 

We're having this exact issue.  Did you ever get this resolved.  How?

 

Cheers,

Mark.

marksc
Member

I got it to work by supplying the hostedProfileReturnUrl value in the settings.  I know they are saying do not fill it up in case of popup or iframe but the code says otherwise.

 

function btnCancelEdit_onclick(editInfo, i) {
if (g_inProgress) return;
editInfo.showEditMode(false, i);
if (g_singleItemMode) {
sendCommunicationToMerchant("action=cancel");
var lnk = document.getElementById("lnkContinue");
if (lnk && lnk.href) window.location = lnk.href;
}
}
function btnCloseWindow_onclick() {
sendCommunicationToMerchant("action=cancel");
var lnk = document.getElementById("lnkContinue");
if (lnk && lnk.href) window.location = lnk.href;
}