<?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 hostedPaymentReturnOptions fails in accept-sample-sapp in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/hostedPaymentReturnOptions-fails-in-accept-sample-sapp/m-p/69792#M42749</link>
    <description>&lt;P&gt;I am testing the accept-sample-app (in PHP) from GitHub. I can successfully make a transaction from the iFrame as written, but only with the default receipt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getHostedPaymentForm.php has&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;hostedPaymentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;settingName&amp;gt;hostedPaymentReturnOptions&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/setting&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;/hostedPaymentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding this line after &amp;lt;/settingName&amp;gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settingValue&amp;gt;{'showReceipt':false, 'url':'&lt;A href="https://mypage.com'}&amp;lt;/settingValue" target="_blank"&gt;https://mypage.com'}&amp;lt;/settingValue&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;causes the app to fail with:&lt;/P&gt;&lt;P&gt;&amp;nbsp; "&lt;EM&gt;The element 'setting' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'settingValue' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a similar failure trying to add the iFrame url parameter to :&lt;/P&gt;&lt;P&gt;&amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;settingName&amp;gt;hostedPaymentIFrameCommunicatorUrl&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;lt;/setting&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I suppress the AuthNet receipt to display my own?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a required order to the settings (as in the &amp;lt;transactionRequest&amp;gt; block)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a newer xml schema?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 22:39:46 GMT</pubDate>
    <dc:creator>adrianh</dc:creator>
    <dc:date>2019-11-22T22:39:46Z</dc:date>
    <item>
      <title>hostedPaymentReturnOptions fails in accept-sample-sapp</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/hostedPaymentReturnOptions-fails-in-accept-sample-sapp/m-p/69792#M42749</link>
      <description>&lt;P&gt;I am testing the accept-sample-app (in PHP) from GitHub. I can successfully make a transaction from the iFrame as written, but only with the default receipt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;getHostedPaymentForm.php has&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;hostedPaymentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;settingName&amp;gt;hostedPaymentReturnOptions&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/setting&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;/hostedPaymentSettings&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding this line after &amp;lt;/settingName&amp;gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;settingValue&amp;gt;{'showReceipt':false, 'url':'&lt;A href="https://mypage.com'}&amp;lt;/settingValue" target="_blank"&gt;https://mypage.com'}&amp;lt;/settingValue&lt;/A&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;causes the app to fail with:&lt;/P&gt;&lt;P&gt;&amp;nbsp; "&lt;EM&gt;The element 'setting' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'settingValue' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get a similar failure trying to add the iFrame url parameter to :&lt;/P&gt;&lt;P&gt;&amp;lt;setting&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;settingName&amp;gt;hostedPaymentIFrameCommunicatorUrl&amp;lt;/settingName&amp;gt;&lt;BR /&gt;&amp;lt;/setting&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I suppress the AuthNet receipt to display my own?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a required order to the settings (as in the &amp;lt;transactionRequest&amp;gt; block)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a newer xml schema?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 22:39:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/hostedPaymentReturnOptions-fails-in-accept-sample-sapp/m-p/69792#M42749</guid>
      <dc:creator>adrianh</dc:creator>
      <dc:date>2019-11-22T22:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: hostedPaymentReturnOptions fails in accept-sample-sapp</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/hostedPaymentReturnOptions-fails-in-accept-sample-sapp/m-p/69804#M42760</link>
      <description>&lt;P&gt;Okay, I see what I was missing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further down the script there is this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;$commUrl = json_encode(array('url' =&amp;gt; thisPageURL()."IFrameCommunicator.html" ), JSON_UNESCAPED_SLASHES);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;$xml-&amp;gt;hostedPaymentSettings-&amp;gt;setting[0]-&amp;gt;addChild('settingValue', $commUrl);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;$retUrl = json_encode(array("showReceipt" =&amp;gt; false , 'url' =&amp;gt; thisPageURL()."return.html", "urlText"=&amp;gt;"Continue to site", "cancelUrl" =&amp;gt; thisPageURL()."return.html", "cancelUrlText" =&amp;gt; "Cancelx" ), JSON_UNESCAPED_SLASHES);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;$xml-&amp;gt;hostedPaymentSettings-&amp;gt;setting[2]-&amp;gt;addChild('settingValue', $retUrl);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;This properly suppresses the default receipt, and displays the sample's receipt.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;But why this code instead of the simpler &amp;lt;settingValue&amp;gt; within &amp;lt;hostedPaymentSettings&amp;gt; in the preceding code?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Adrian&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 15:43:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/hostedPaymentReturnOptions-fails-in-accept-sample-sapp/m-p/69804#M42760</guid>
      <dc:creator>adrianh</dc:creator>
      <dc:date>2019-11-23T15:43:24Z</dc:date>
    </item>
  </channel>
</rss>

