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
07-09-2013 01:51 PM
Hi Joe,
We're having this exact issue. Did you ever get this resolved. How?
Cheers,
Mark.
07-04-2015 09:32 AM
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;
}
04-18-2018 02:04 AM - edited 04-18-2018 02:05 AM