Hi
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.
,onSuccess: function(apiResp, i) {
if (g_singleItemMode) {
sendCommunicationToMerchant("action=successfulSave");
this.showConfirmationText(i);
} else {
this.showEditMode(false, i);
setTimeout("reloadCustProf()", 1);
}
}
The field g_singleItemMode is always false so it never send message to my client. Can you tell me how can I make the field g_singleItemMode to be TRUE?