<?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: Accept.js function issues? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/57187#M31918</link>
    <description>&lt;P&gt;Just a heads up for anyone watching this thread that we've released code in sandbox that fixes many issues with Accept.js&amp;nbsp;here, and this code should make it into the production environment within the next couple of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically for Accept.js, there's no longer any "Access-Control-Allow-Origin" related error in the console, the accept.js script can now be loaded at any point in the workflow, and the response handler function can be passed directly in the function call instead of having to pass the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This last fix makes it easier to call the responseHandler function, so it may actually fix the issue with calling the function in Knockout or other frameworks. If anyone has a similar issue and sees this thread, it would be helpful to let us know&amp;nbsp;if there's any change there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2017 00:06:22 GMT</pubDate>
    <dc:creator>Aaron</dc:creator>
    <dc:date>2017-03-08T00:06:22Z</dc:date>
    <item>
      <title>Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/55921#M30745</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently i'm trying to intregrate Accept.js into my website. It seems i have it all set up correctly and its just that i'm having an issue with the AcceptCore.js issues.(TypeError: window[b] is not a function)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence i am unable to run the responseHandler callback function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 03:59:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/55921#M30745</guid>
      <dc:creator>hhalim</dc:creator>
      <dc:date>2016-10-08T03:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/55922#M30746</link>
      <description>&lt;P&gt;Aight,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems its depends on my framework apparently. Im using knockout.js framework hence my declaration for a function is different that causes the response callback execution issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(normal javascript function calling)&lt;/P&gt;&lt;P&gt;function responseHandler(response) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (response.messages.resultCode === 'Error') {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; response.messages.message.length; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(response.messages.message[i].code + ':' + response.messages.message[i].text);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useOpaqueData(response.opaqueData)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(knockoutjs function calling)&lt;/P&gt;&lt;P&gt;&amp;nbsp; responseHandler = function(response){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (response.messages.resultCode === 'Error') {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; response.messages.message.length; i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log(response.messages.message[i].code + ':' + response.messages.message[i].text);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useOpaqueData(response.opaqueData)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm replying this anyways since some people might think its the Accept.js issues, apparently its not. Check your framework documentation just to make sure how the function calling is called.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 06:20:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/55922#M30746</guid>
      <dc:creator>hhalim</dc:creator>
      <dc:date>2016-10-08T06:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/56830#M31608</link>
      <description>&lt;P&gt;I ran into this problem too. I had to attach the callback function to window, e.g.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; window.responseHandler = function(response) {&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:48:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/56830#M31608</guid>
      <dc:creator>dgohlke</dc:creator>
      <dc:date>2017-01-31T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/57009#M31751</link>
      <description>&lt;P&gt;I also had this problem, when calling these functions from within jQuery. Thanks for the recommended solution, it cleared things right up for me :)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:56:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/57009#M31751</guid>
      <dc:creator>jenlampton</dc:creator>
      <dc:date>2017-02-22T20:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/57187#M31918</link>
      <description>&lt;P&gt;Just a heads up for anyone watching this thread that we've released code in sandbox that fixes many issues with Accept.js&amp;nbsp;here, and this code should make it into the production environment within the next couple of days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically for Accept.js, there's no longer any "Access-Control-Allow-Origin" related error in the console, the accept.js script can now be loaded at any point in the workflow, and the response handler function can be passed directly in the function call instead of having to pass the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This last fix makes it easier to call the responseHandler function, so it may actually fix the issue with calling the function in Knockout or other frameworks. If anyone has a similar issue and sees this thread, it would be helpful to let us know&amp;nbsp;if there's any change there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 00:06:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/57187#M31918</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-03-08T00:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/68235#M41480</link>
      <description>&lt;P&gt;I am still facing this issue in ReactJS&lt;BR /&gt;&lt;BR /&gt;Loading the script with postscribe&lt;/P&gt;&lt;PRE&gt;componentDIdMount={
 postscribe(
      '#paymentButton',
      `&amp;lt;script language="javascript" src="https://jstest.authorize.net/v3/AcceptUI.js"&amp;gt;&amp;lt;/script&amp;gt;`
    );
}&lt;/PRE&gt;&lt;P&gt;Rendering the form with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;form id="paymentForm" method="POST" action=""&amp;gt;
          &amp;lt;input type="hidden" name="dataValue" id="dataValue" /&amp;gt;
          &amp;lt;input type="hidden" name="dataDescriptor" id="dataDescriptor" /&amp;gt;
          &amp;lt;InputDiv id="proceed"&amp;gt;
            &amp;lt;Button
              type="button"
              id="paymentButton"
              className="AcceptUI"
              data-billingAddressOptions='{"show":true, "required":false}'
              data-apiLoginID="loginId"
              data-clientKey="key"
              data-acceptUIFormBtnTxt="Submit"
              data-acceptUIFormHeaderTxt="Card Information"
              data-paymentOptions='{"showCreditCard": true, "showBankAccount": true}'
              data-responseHandler={handleSendPaymentToAuthorizeNet}
              crossOrigin="anonymous"
            &amp;gt;
              Proceed
            &amp;lt;/Button&amp;gt;
          &amp;lt;/InputDiv&amp;gt;
        &amp;lt;/form&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2019 10:53:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/68235#M41480</guid>
      <dc:creator>vamshi27</dc:creator>
      <dc:date>2019-07-01T10:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js function issues?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/69522#M42528</link>
      <description>&lt;P&gt;I solved this problem by changing my script source from&amp;nbsp;&lt;SPAN&gt;https://jstest&lt;/SPAN&gt;&lt;SPAN&gt;.authorize.net/v3/AcceptUI.js&amp;nbsp;&lt;/SPAN&gt;to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://js.authorize.net/v3/AcceptUI.js" target="_blank" rel="noopener"&gt;https://js.authorize.net/v3/AcceptUI.js&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 16:59:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-function-issues/m-p/69522#M42528</guid>
      <dc:creator>Complex210</dc:creator>
      <dc:date>2019-10-25T16:59:45Z</dc:date>
    </item>
  </channel>
</rss>

