<?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 error with Accept hosted page (sandbox environment) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69310#M42359</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use authorize.net Java SDK, latest version 2.0.1. &amp;nbsp; Using JDK 11 (not 8) on Windows 10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We get a failed (with errors), Order Summary page&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the return URL that has &lt;STRONG&gt;more than one&lt;/STRONG&gt; query parameters (delimited by &amp;amp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we specifiy just 1 query parameter in the return URL, the hosted page seem to work with no problem (we get the Order summary screen, can enter cc number and click continue).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The errors in the Hosted page can be seen in the attached image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The errors are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SyntaxError: "" string literal contains an unescaped line break&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR ReferenceError: "g_errorPanelMessage is not defined"&lt;/P&gt;&lt;P&gt;ERROR TypeError: "this.paymentProfileList" is undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The debugger screenshot attached to this messsage,&amp;nbsp; showing all the parameters that are passed (and the issue pointed by yellow error) into API --&amp;nbsp; is also attached (auth-net-issue1b.png) picture.&amp;nbsp; It contains all the parameters and their order. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;we searched community forums, but no helpful discussion were found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We receive no errors from the API call (the token it generates seems to be valid).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://imgur.com/a/BpkAIwO" target="_self"&gt;Debugger screenshot&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://imgur.com/a/2E2gLdG" target="_self"&gt;Hosted web page error&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 15:59:38 GMT</pubDate>
    <dc:creator>erdz1</dc:creator>
    <dc:date>2019-10-07T15:59:38Z</dc:date>
    <item>
      <title>error with Accept hosted page (sandbox environment)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69310#M42359</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use authorize.net Java SDK, latest version 2.0.1. &amp;nbsp; Using JDK 11 (not 8) on Windows 10.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We get a failed (with errors), Order Summary page&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the return URL that has &lt;STRONG&gt;more than one&lt;/STRONG&gt; query parameters (delimited by &amp;amp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we specifiy just 1 query parameter in the return URL, the hosted page seem to work with no problem (we get the Order summary screen, can enter cc number and click continue).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The errors in the Hosted page can be seen in the attached image&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The errors are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SyntaxError: "" string literal contains an unescaped line break&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ERROR ReferenceError: "g_errorPanelMessage is not defined"&lt;/P&gt;&lt;P&gt;ERROR TypeError: "this.paymentProfileList" is undefined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The debugger screenshot attached to this messsage,&amp;nbsp; showing all the parameters that are passed (and the issue pointed by yellow error) into API --&amp;nbsp; is also attached (auth-net-issue1b.png) picture.&amp;nbsp; It contains all the parameters and their order. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;we searched community forums, but no helpful discussion were found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We receive no errors from the API call (the token it generates seems to be valid).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://imgur.com/a/BpkAIwO" target="_self"&gt;Debugger screenshot&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://imgur.com/a/2E2gLdG" target="_self"&gt;Hosted web page error&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 15:59:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69310#M42359</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-10-07T15:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: error with Accept hosted page (sandbox environment)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69377#M42412</link>
      <description>&lt;P&gt;did not get any suggestions sofar.&lt;/P&gt;&lt;P&gt;Would very much appreciate if somebody could help (I contacted also developer support at Authorize.net, but they said all that they can do is reset passwords for sandbox, they do not help developers).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody on the forum use authorize.net Java SDK (version 2.0.1) ?&lt;/P&gt;&lt;P&gt;And with that does anybody use Payment Hosted page with a return URL with 2 or more query parameters?&amp;nbsp; (I need query parameters in return URL to be able to re-create the state of my application after user finishes paymetnt).&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 14:58:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69377#M42412</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-10-15T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: error with Accept hosted page (sandbox environment)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69683#M42661</link>
      <description>&lt;P&gt;To help others following up with a workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;---&lt;/P&gt;&lt;P&gt;Even though&amp;nbsp; &lt;A href="https://developer.authorize.net/api/reference/features/accept_hosted.html#AcceptHosted_Response" target="_self"&gt;Authorize.net documentation&lt;/A&gt; states&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"...&lt;/P&gt;&lt;P&gt;With any of the form integration methods, you can embed information specific to the customer into the continue URL or the cancel URL. The merchant server's code can embed a tracking code into the URL that can identify the specific customer and order details when the customer returns. &lt;FONT color="#ff0000"&gt;&lt;EM&gt;&lt;STRONG&gt;URL-encode &lt;U&gt;any&lt;/U&gt; name-value &lt;U&gt;pairs&lt;/U&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt; embedded in the URL to ensure correct processing in the form request.&lt;/P&gt;&lt;P&gt;.."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not work (at least when using &lt;A href="https://github.com/AuthorizeNet/sdk-java" target="_self"&gt;AuthorizeNet Java SDK&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following workaround had to be made to our code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) use &lt;EM&gt;&lt;STRONG&gt;only 1&lt;/STRONG&gt;&lt;/EM&gt; URL Query parameter in&amp;nbsp;hostedPaymentReturnOptions&amp;nbsp; return url&lt;/P&gt;&lt;P&gt;b) Base64 encode the value of the query parameter (URL-encoding did not work for us)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect, not using Query parameters and just adding base64 encoded path-end would also work&lt;/P&gt;&lt;P&gt;(eg &amp;nbsp; &amp;nbsp; https://mywebsite/return/az/accepted/&amp;lt;base64 encoded blob of your data&amp;gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;https://mywebsite/return/az/accepted?ourBlob=&amp;lt;base64 encoded&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 16:32:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/error-with-Accept-hosted-page-sandbox-environment/m-p/69683#M42661</guid>
      <dc:creator>erdz1</dc:creator>
      <dc:date>2019-11-13T16:32:11Z</dc:date>
    </item>
  </channel>
</rss>

