<?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: Authorize.net Accept.js Hosted - Invalid Setting Value. hostedPaymentReturnOptionsurl must begin in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85615#M53862</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there anything mentioned in documentation that localhost is not supported anymore?&lt;/P&gt;&lt;P&gt;I have the same issue only in local environment...&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 17:27:32 GMT</pubDate>
    <dc:creator>shalva_step</dc:creator>
    <dc:date>2023-02-02T17:27:32Z</dc:date>
    <item>
      <title>Authorize.net Accept.js Hosted - Invalid Setting Value. hostedPaymentReturnOptionsurl must begin wit</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85195#M53578</link>
      <description>&lt;P&gt;I also posted this on stackoverflow, but haven't gotten any action. &lt;A href="https://stackoverflow.com/questions/74733569/authorize-net-accept-js-hosted-invalid-setting-value-hostedpaymentreturnoptio" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/74733569/authorize-net-accept-js-hosted-invalid-setting-value-hostedpaymentreturnoptio&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;I just started getting this error today from my authorize.net API implementation and it is preventing customers from making to the payment page.&lt;/P&gt;&lt;P&gt;I'm using the authorize.net API SDK.&lt;/P&gt;&lt;P&gt;My return option URLs are formatted as such:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;$success_url&lt;/SPAN&gt; = &lt;SPAN class=""&gt;"https://"&lt;/SPAN&gt; . &lt;SPAN class=""&gt;$_SERVER&lt;/SPAN&gt;[&lt;SPAN class=""&gt;'HTTP_HOST'&lt;/SPAN&gt;] . &lt;SPAN class=""&gt;"/payment/cc_authorizenet_accept_hosted.php?r=&lt;SPAN class=""&gt;$soidhash&lt;/SPAN&gt;"&lt;/SPAN&gt;;
&lt;SPAN class=""&gt;$cancel_url&lt;/SPAN&gt; = &lt;SPAN class=""&gt;"https://"&lt;/SPAN&gt; . &lt;SPAN class=""&gt;$_SERVER&lt;/SPAN&gt;[&lt;SPAN class=""&gt;'HTTP_HOST'&lt;/SPAN&gt;] . &lt;SPAN class=""&gt;"/payment/cc_authorizenet_accept_hosted.php?r=&lt;SPAN class=""&gt;$coidhash&lt;/SPAN&gt;"&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;Then put into an array of options:&lt;/P&gt;&lt;PRE&gt; &lt;SPAN class=""&gt;$payment_options&lt;/SPAN&gt; = &lt;SPAN class=""&gt;array&lt;/SPAN&gt;(
        &lt;SPAN class=""&gt;'hostedPaymentSecurityOptions'&lt;/SPAN&gt;          =&amp;gt;  &lt;SPAN class=""&gt;"{\"captcha\": false}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentStyleOptions'&lt;/SPAN&gt;             =&amp;gt;  &lt;SPAN class=""&gt;"{\"bgColor\": \"#C00\"}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentShippingAddressOptions'&lt;/SPAN&gt;   =&amp;gt;  &lt;SPAN class=""&gt;"{\"show\": false, \"required\": true}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentBillingAddressOptions'&lt;/SPAN&gt;    =&amp;gt;  &lt;SPAN class=""&gt;"{\"show\": false, \"required\": true}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentButtonOptions'&lt;/SPAN&gt;            =&amp;gt;  &lt;SPAN class=""&gt;"{\"text\": \"Submit Secure Payment\"}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentOrderOptions'&lt;/SPAN&gt;             =&amp;gt;  &lt;SPAN class=""&gt;"{\"show\": true, \"merchantName\": \"Lee Precision, Inc.\"}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentPaymentOptions'&lt;/SPAN&gt;           =&amp;gt;  &lt;SPAN class=""&gt;"{\"cardCodeRequired\": true, \"showCreditCard\": true,\"showBankAccount\": false}"&lt;/SPAN&gt;,
        &lt;SPAN class=""&gt;'hostedPaymentReturnOptions'&lt;/SPAN&gt;            =&amp;gt;  &lt;SPAN class=""&gt;"{\"showReceipt\": true,\"url\": \"&lt;SPAN class=""&gt;{$success_url}&lt;/SPAN&gt;\", \"urlText\": \"Get Receipt\", \"cancelUrl\": \"&lt;SPAN class=""&gt;{$cancel_url}&lt;/SPAN&gt;\", \"cancelUrlText\": \"Cancel/Continue Shopping\"}"&lt;/SPAN&gt;
    );&lt;/PRE&gt;&lt;P&gt;Then options added using API SDK:&lt;/P&gt;&lt;PRE&gt;   &lt;SPAN class=""&gt;foreach&lt;/SPAN&gt; (&lt;SPAN class=""&gt;$payment_options&lt;/SPAN&gt; &lt;SPAN class=""&gt;as&lt;/SPAN&gt; &lt;SPAN class=""&gt;$k&lt;/SPAN&gt; =&amp;gt; &lt;SPAN class=""&gt;$v&lt;/SPAN&gt;) {
        &lt;SPAN class=""&gt;$aSetting&lt;/SPAN&gt; = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; AnetAPI\&lt;SPAN class=""&gt;SettingType&lt;/SPAN&gt;();
        &lt;SPAN class=""&gt;$aSetting&lt;/SPAN&gt;-&amp;gt;&lt;SPAN class=""&gt;setSettingName&lt;/SPAN&gt;(&lt;SPAN class=""&gt;$k&lt;/SPAN&gt;);
        &lt;SPAN class=""&gt;$aSetting&lt;/SPAN&gt;-&amp;gt;&lt;SPAN class=""&gt;setSettingValue&lt;/SPAN&gt;(&lt;SPAN class=""&gt;$v&lt;/SPAN&gt;);
        &lt;SPAN class=""&gt;$request&lt;/SPAN&gt;-&amp;gt;&lt;SPAN class=""&gt;addToHostedPaymentSettings&lt;/SPAN&gt;(&lt;SPAN class=""&gt;$aSetting&lt;/SPAN&gt;);
    }&lt;/PRE&gt;&lt;P&gt;This implementation has been working for about two years, and I have not changed any of the code since then, so I'm not sure if their API is having an issue? Status page says everything is working.&lt;/P&gt;&lt;P&gt;Is there a way on authorize.net to review API requests to see what they are receiving from my server?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Dec 2022 17:48:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85195#M53578</guid>
      <dc:creator>danfbach1</dc:creator>
      <dc:date>2022-12-08T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize.net Accept.js Hosted - Invalid Setting Value. hostedPaymentReturnOptionsurl must begin</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85230#M53604</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi anyone that visits this thread (we'll try to update all the threads we're aware of). We had this problem and just resolved it. Here are some tips:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. localhost is NO LONGER ALLOWED, that is not in the error, but it produces that error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. the errors are stacked in an array. so look at all of them, not just one of them like we were.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 2nd above was our issue, we assumed wrongly that the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hostedPaymentIFrameCommunicatorUrlurl error would not be on the stack if it were not an issue. It was fine... but our&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;hostedPaymentReturnOptions setting was not fine. We didn't use that setting for anything and just had some static relative urls in that setting. As soon as we corrected that it worked again.&lt;BR /&gt;&lt;BR /&gt;The disabling of localhost has thrown a monkey wrench for developers that requires creating bogus local dns settings that are not localhost as well as issuing certs for those. So if you're using webpack, or anything that automatically generates a localhost cert, you're going to have to work around it with the 12/7 update. I sure hope we're solving some big vulnerability here with the localhost issue because this sure won't be convenient.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 18:06:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85230#M53604</guid>
      <dc:creator>VeraciTek</dc:creator>
      <dc:date>2022-12-12T18:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Authorize.net Accept.js Hosted - Invalid Setting Value. hostedPaymentReturnOptionsurl must begin</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85615#M53862</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there anything mentioned in documentation that localhost is not supported anymore?&lt;/P&gt;&lt;P&gt;I have the same issue only in local environment...&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 17:27:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Authorize-net-Accept-js-Hosted-Invalid-Setting-Value/m-p/85615#M53862</guid>
      <dc:creator>shalva_step</dc:creator>
      <dc:date>2023-02-02T17:27:32Z</dc:date>
    </item>
  </channel>
</rss>

