I am using CIM hosted form as a popup. After a customer authorizes a payment and closes popup how do I get confirmation that payment was authorized by customer? I want to know if customer authorized or did nothing before closing popup.
Thanks
10-22-2015 07:39 AM
The popup don't authorize payment. it allow the customer to save a payment profile.
10-22-2015 07:58 AM
Yes I meant payment profile. How do I know if payment profile was added?
10-22-2015 08:46 AM
Anyone know?
Thanks
10-26-2015 08:58 AM
What I've done so far is to change the AuthorizeNetPopup.closePopup() function in popup.js to have a "didCancel" parameter of either "1" if cancel was selected or "0" if save was selected. AuthorizeNetPopup.onReceiveCommunication() knows if it was save or cancel, but doesn't pass that on to the user-supplied function.
contentx/popup.js contentx/popup.js contentx/popup.js 2011-04-22 14:28:22.000000000 -0400 +++ contentx/popup.js 2015-11-16 13:23:45.601852262 -0500 @@ -34,11 +34,11 @@ ,skipZIndexCheck: false ,useTestEnvironment: false }; - AuthorizeNetPopup.closePopup = function() { + AuthorizeNetPopup.closePopup = function(didCancel) { document.getElementById("divAuthorizeNetPopupScreen").style.display = "none"; document.getElementById("divAuthorizeNetPopup").style.display = "none"; document.getElementById("iframeAuthorizeNet").src="contentx/empty.html"; - if (AuthorizeNetPopup.options.onPopupClosed) AuthorizeNetPopup.options.onPopupClosed(); + if (AuthorizeNetPopup.options.onPopupClosed) AuthorizeNetPopup.options.onPopupClosed(didCancel); }; AuthorizeNetPopup.openManagePopup = function() { openSpecificPopup({action:"manage"}); @@ -59,10 +59,10 @@ var params = parseQueryString(querystr); switch(params["action"]) { case "successfulSave": - AuthorizeNetPopup.closePopup(); + AuthorizeNetPopup.closePopup(0); break; case "cancel": - AuthorizeNetPopup.closePopup(); + AuthorizeNetPopup.closePopup(1); break; case "resizeWindow": var w = parseInt(params["width"]);
11-16-2015 11:14 AM