<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CIM Hosted Form Popup in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/53008#M28173</link>
    <description>&lt;P&gt;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.&amp;nbsp;&amp;nbsp; AuthorizeNetPopup.onReceiveCommunication() knows if it was save or cancel, but doesn't pass that on to the user-supplied function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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"]);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2015 19:14:18 GMT</pubDate>
    <dc:creator>mkienenb</dc:creator>
    <dc:date>2015-11-16T19:14:18Z</dc:date>
    <item>
      <title>CIM Hosted Form Popup</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52693#M27916</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 14:39:28 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52693#M27916</guid>
      <dc:creator>webDev1</dc:creator>
      <dc:date>2015-10-22T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: CIM Hosted Form Popup</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52694#M27917</link>
      <description>&lt;P&gt;The popup don't authorize payment. it allow the customer to save a payment profile.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 14:58:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52694#M27917</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-10-22T14:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: CIM Hosted Form Popup</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52696#M27919</link>
      <description>&lt;P&gt;Yes I meant&amp;nbsp;payment profile. How do I know if payment profile&amp;nbsp;was added?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 15:46:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52696#M27919</guid>
      <dc:creator>webDev1</dc:creator>
      <dc:date>2015-10-22T15:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: CIM Hosted Form Popup</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52734#M27952</link>
      <description>&lt;P&gt;Anyone know?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 15:58:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/52734#M27952</guid>
      <dc:creator>webDev1</dc:creator>
      <dc:date>2015-10-26T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: CIM Hosted Form Popup</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/53008#M28173</link>
      <description>&lt;P&gt;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.&amp;nbsp;&amp;nbsp; AuthorizeNetPopup.onReceiveCommunication() knows if it was save or cancel, but doesn't pass that on to the user-supplied function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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"]);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 19:14:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Hosted-Form-Popup/m-p/53008#M28173</guid>
      <dc:creator>mkienenb</dc:creator>
      <dc:date>2015-11-16T19:14:18Z</dc:date>
    </item>
  </channel>
</rss>

