Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 3
Registered: ‎06-26-2013

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

 

 

Member
Posts: 1
Registered: ‎07-04-2015

Re: iFrameCommunicator fires-never get successfulSave response from iframe

Hi Joe,

 

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

 

Cheers,

Mark.

Contributor
Posts: 13
Registered: ‎06-26-2012

Re: iFrameCommunicator fires-never get successfulSave response from iframe

[ Edited ]

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;
}