<?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 CIM - OpenEditPaymentPopup gives me &amp;quot;Missing Payment Profile ID&amp;quot; in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19168#M10576</link>
    <description>&lt;P&gt;I miswrote this question earlier (pasted in the Edit Shipping code instead of Edit Payment), so here it is again with the problem I am having shown more clearly in case someone can help me figure it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having trouble integrating the Edit Payment popup from the CIM module with my test account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am properly getting a hosted token with a saved customer ID, and I know it works because when I attach&amp;nbsp;openManagePopup() to the button on my page, the info for the customer in question shows up fine in the pop up window. &amp;nbsp;The payment and shipping info from that customer is all shown in the pop up. &amp;nbsp;So, the token is good and the popup is retreiving the saved CIM data for that customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I replace the manage popup with openEditPaymentPopup() to edit a particular payment profile for that customer, I get the message "Missing Payment Profile ID" in the popup window. &amp;nbsp;I even hard coded a legit payment ID in the call, as shown here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;button onclick="AuthorizeNetPopup.openEditPaymentPopup('5032582')"&amp;gt;Edit Payment Info&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ID shown is an actual payment profile ID from the customer referenced (not the customer ID, but the customer's payment profile ID), the same customer I used to get the hosted token, which was successful. &amp;nbsp;I hard coded a legitimate payment profile ID to be sure real data was getting passed to the popup, but I always get the Missing ID message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on what I am doing wrong? &amp;nbsp;It makes no sense to me that calling Addpaymentpopup or openManagePopup&amp;nbsp;works fine for the customer in question but the Edit does not work. &amp;nbsp;Is the documentation accurate? &amp;nbsp;Do I need to pass the customer ID as well as the payment profile ID? &amp;nbsp;I am following the sample code as well as the docs, so there does not seem to be any reason why it would not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample code from the CIM documentation is shown here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;button onclick="AuthorizeNetPopup.openEditPaymentPopup('123456')"&amp;gt;Edit&lt;BR /&gt;Payment Method&amp;lt;/button&amp;gt;&lt;BR /&gt;Replace ‘123456’ with the payment profile ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure looks like exactly what I am doing.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2011 04:40:53 GMT</pubDate>
    <dc:creator>Talentville</dc:creator>
    <dc:date>2011-11-21T04:40:53Z</dc:date>
    <item>
      <title>CIM - OpenEditPaymentPopup gives me "Missing Payment Profile ID"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19168#M10576</link>
      <description>&lt;P&gt;I miswrote this question earlier (pasted in the Edit Shipping code instead of Edit Payment), so here it is again with the problem I am having shown more clearly in case someone can help me figure it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having trouble integrating the Edit Payment popup from the CIM module with my test account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am properly getting a hosted token with a saved customer ID, and I know it works because when I attach&amp;nbsp;openManagePopup() to the button on my page, the info for the customer in question shows up fine in the pop up window. &amp;nbsp;The payment and shipping info from that customer is all shown in the pop up. &amp;nbsp;So, the token is good and the popup is retreiving the saved CIM data for that customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I replace the manage popup with openEditPaymentPopup() to edit a particular payment profile for that customer, I get the message "Missing Payment Profile ID" in the popup window. &amp;nbsp;I even hard coded a legit payment ID in the call, as shown here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;button onclick="AuthorizeNetPopup.openEditPaymentPopup('5032582')"&amp;gt;Edit Payment Info&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ID shown is an actual payment profile ID from the customer referenced (not the customer ID, but the customer's payment profile ID), the same customer I used to get the hosted token, which was successful. &amp;nbsp;I hard coded a legitimate payment profile ID to be sure real data was getting passed to the popup, but I always get the Missing ID message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on what I am doing wrong? &amp;nbsp;It makes no sense to me that calling Addpaymentpopup or openManagePopup&amp;nbsp;works fine for the customer in question but the Edit does not work. &amp;nbsp;Is the documentation accurate? &amp;nbsp;Do I need to pass the customer ID as well as the payment profile ID? &amp;nbsp;I am following the sample code as well as the docs, so there does not seem to be any reason why it would not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample code from the CIM documentation is shown here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;button onclick="AuthorizeNetPopup.openEditPaymentPopup('123456')"&amp;gt;Edit&lt;BR /&gt;Payment Method&amp;lt;/button&amp;gt;&lt;BR /&gt;Replace ‘123456’ with the payment profile ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure looks like exactly what I am doing.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 04:40:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19168#M10576</guid>
      <dc:creator>Talentville</dc:creator>
      <dc:date>2011-11-21T04:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - OpenEditPaymentPopup gives me "Missing Payment Profile ID"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19180#M10582</link>
      <description>&lt;P&gt;Did you removed the&lt;/P&gt;&lt;PRE&gt;&amp;lt;input type="hidden" name="PaymentProfileId" value="" /&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;from the form post that have the hidden token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 12:40:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19180#M10582</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-11-21T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - OpenEditPaymentPopup gives me "Missing Payment Profile ID"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19200#M10592</link>
      <description>&lt;P&gt;The way I have the Edit Payment Implemented is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The button...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;p class="editpayment"&amp;gt;&amp;lt;a onclick="AuthorizeNetPopup.openEditPaymentPopup('5630496')"&amp;gt; Edit Payment Information&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Form:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;form method="post" action="&lt;A href="https://test.authorize.net/profile/manage" target="_blank"&gt;https://test.authorize.net/profile/manage&lt;/A&gt;" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display:none;"&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="Token" value="&amp;lt;?php echo $token; ?&amp;gt;" /&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only hidden field that is shown in the sample code that I took this from is the hidden token, there is no hidden profile ID. &amp;nbsp;The payment profile ID is passed in via the onclick action, so I do not know where there would be a hidden field for the paymentprifileID. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously I want the form to be flexible so that I can call the edit, update or manage for the customer's information depending on what I need to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need a hidden field for each of the values I am passing in? &amp;nbsp;Is there anywhere in the CIM documentation that spells out how the form has to change for each of the types of calls? &amp;nbsp;I thought the forst only needed the token and having the vlaue in the button onClick action passed in the actual payment ID to the function.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 16:07:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19200#M10592</guid>
      <dc:creator>Talentville</dc:creator>
      <dc:date>2011-11-21T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - OpenEditPaymentPopup gives me "Missing Payment Profile ID"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19202#M10593</link>
      <description>&lt;P&gt;In the hostedProfilePaymentsShipping.zip html file.&lt;/P&gt;&lt;PRE&gt;&amp;lt;form method="post" action="" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display:none;"&amp;gt;
  &amp;lt;input type="hidden" name="Token" value="LongTokenText" /&amp;gt;
  &amp;lt;input type="hidden" name="PaymentProfileId" value="" /&amp;gt;
  &amp;lt;input type="hidden" name="ShippingAddressId" value="" /&amp;gt;
&amp;lt;/form&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The hidden PaymentProfileID input is use with the javascript to pass the ID with the form submit.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 16:17:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19202#M10593</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-11-21T16:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - OpenEditPaymentPopup gives me "Missing Payment Profile ID"</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19208#M10596</link>
      <description>&lt;P&gt;Well, that did the trick. &amp;nbsp;The code that I took from whatever sample code I found only had the token field, I never saw the other hidden fields. &amp;nbsp;Obviously the value I pass in is put into the hidden field when passed, so that solved the problem. &amp;nbsp;Obviously the other methods worked because there was no extra data being passed in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2011 16:37:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-OpenEditPaymentPopup-gives-me-quot-Missing-Payment-Profile/m-p/19208#M10596</guid>
      <dc:creator>Talentville</dc:creator>
      <dc:date>2011-11-21T16:37:24Z</dc:date>
    </item>
  </channel>
</rss>

