<?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 Using accept.js in a single page app (react.js) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60744#M35256</link>
    <description>&lt;P&gt;Hello!&amp;nbsp; &amp;nbsp;We are looking to use Authorize.NET accept.js to maintain our SAQ-A compliance (we already do this with braintree and stripe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm finding it very difficult to work with accept.js based on the documentation and I'm hoping what I wan't is do-able in a non-docmented way!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My big problem is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"IMPORTANT: When using the payment information form, be sure that your page loads the library after the button is defined."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script seems to want to process the DOM as soon as it loads and find the attributes it needs.&amp;nbsp; This makes it extremely difficult to work with from a single page app perspective because if the user views the payment page, then decides to go back to add something else to the cart, and then goes to pay again... the script is already been loaded but now the form isn't being rendered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to be able to do is have accept.js give me a function to call and pass it the things that are necessary (is test mode, publish key, etc).&amp;nbsp; &amp;nbsp;This is how it is done in braintree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;braintree.dropin.create({
      authorization: 'CLIENT_TOKEN_FROM_SERVER',
      container: '#dropin-container'
    }&lt;/PRE&gt;&lt;P&gt;and this is how it is done with stripe:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Create an instance of the card Element
var card = elements.create('card', {style: style});

// Add an instance of the card Element into the `card-element` &amp;lt;div&amp;gt;
card.mount('#card-element');&lt;/PRE&gt;&lt;P&gt;This API style works *beautifully* on the web, because I can load the javascript file once but construct the payment form when I need it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to do this with accept.js?&amp;nbsp; The only way I've been able to come up with is building the form myself and then calling Accept.dispatch, but this would move us from SAQ-A to SAQ-A EP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Dec 2017 04:31:20 GMT</pubDate>
    <dc:creator>sontek</dc:creator>
    <dc:date>2017-12-06T04:31:20Z</dc:date>
    <item>
      <title>Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60744#M35256</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; &amp;nbsp;We are looking to use Authorize.NET accept.js to maintain our SAQ-A compliance (we already do this with braintree and stripe).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm finding it very difficult to work with accept.js based on the documentation and I'm hoping what I wan't is do-able in a non-docmented way!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My big problem is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"IMPORTANT: When using the payment information form, be sure that your page loads the library after the button is defined."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script seems to want to process the DOM as soon as it loads and find the attributes it needs.&amp;nbsp; This makes it extremely difficult to work with from a single page app perspective because if the user views the payment page, then decides to go back to add something else to the cart, and then goes to pay again... the script is already been loaded but now the form isn't being rendered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to be able to do is have accept.js give me a function to call and pass it the things that are necessary (is test mode, publish key, etc).&amp;nbsp; &amp;nbsp;This is how it is done in braintree:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;braintree.dropin.create({
      authorization: 'CLIENT_TOKEN_FROM_SERVER',
      container: '#dropin-container'
    }&lt;/PRE&gt;&lt;P&gt;and this is how it is done with stripe:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Create an instance of the card Element
var card = elements.create('card', {style: style});

// Add an instance of the card Element into the `card-element` &amp;lt;div&amp;gt;
card.mount('#card-element');&lt;/PRE&gt;&lt;P&gt;This API style works *beautifully* on the web, because I can load the javascript file once but construct the payment form when I need it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some way to do this with accept.js?&amp;nbsp; The only way I've been able to come up with is building the form myself and then calling Accept.dispatch, but this would move us from SAQ-A to SAQ-A EP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 04:31:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60744#M35256</guid>
      <dc:creator>sontek</dc:creator>
      <dc:date>2017-12-06T04:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60746#M35258</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22837"&gt;@sontek&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &amp;nbsp;our Accept.js built-in, mobile-optimized, payment form hosted by Authorize.Net, for a PCI DSS SAQ-A solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_Hosted_Payment_Information_Form&amp;nbsp;" target="_blank"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_Hosted_Payment_Information_Form&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 06:51:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60746#M35258</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2017-12-06T06:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60747#M35259</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp;Sorry if I wasn't clear, the thing you linked to is the thing I'm trying to use but can't because:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- There doesn't seem to be a way to style it&lt;/P&gt;&lt;P&gt;- There doesn't seem to be a way to attach it to a form after load (so single page apps don't work)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Think of it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Server side page renders first page&lt;/P&gt;&lt;P&gt;- User clicks "Pay"&lt;/P&gt;&lt;P&gt;- Payment page loads the Accept.js script&lt;/P&gt;&lt;P&gt;- Hosted form from accept.js is rendered&lt;/P&gt;&lt;P&gt;- User clicks "Keep Shopping"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;at this point, the accept.js javascript file has been loaded, but they are no longer on the payment page.&amp;nbsp; This is a single page app (SPA) using react.js.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now lets continue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- User clicks "Pay"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I tell accept.js hosted to attach to the button on the payment page at this point, since the script is already loaded? I can't load the script a second time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need something like "Accept.attach("#id-of-form",&amp;nbsp; function(response) { ...})"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 07:08:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60747#M35259</guid>
      <dc:creator>sontek</dc:creator>
      <dc:date>2017-12-06T07:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60829#M35340</link>
      <description>&lt;P&gt;Hello, I'm still having issues with this.&amp;nbsp; &amp;nbsp; We are considering monkey patching window.onload and dynamically reloading the script with a new script tag every time but we aren't confident that it wouldn't violate our SAQ-A if we start monkey patching the authorize.net script functionality.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 19:43:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60829#M35340</guid>
      <dc:creator>sontek</dc:creator>
      <dc:date>2017-12-12T19:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60830#M35341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22837"&gt;@sontek&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked with the team internally and the script should load again when the Pay&amp;nbsp; button is clicked again .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this not happening ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 19:55:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60830#M35341</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2017-12-12T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60893#M35403</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp; Hey. &amp;nbsp;Yeah, this is not happening, but its just one of many of&amp;nbsp;my issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me try to document the issues more clearly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The script doesn't work if the button isn't already on the page, it gives this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Uncaught TypeError: Cannot read property 'addEventListener' of undefined
at g (AcceptUI.js:1)
at e (AcceptUI.js:1)
at window.AcceptUI (AcceptUI.js:1)
at AcceptUI.js:1&lt;/PRE&gt;&lt;P&gt;This causes issues because it means I have to show a user a button that isn't functional yet, because the javascript that makes the button function has to be loaded *after* I render the button. &amp;nbsp;Which means they have to see the button and then download javascript before the button works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. We would prefer rendering the form inline rather than a modal, your modal doesn't seem to have any aria attributes on it which causes issues for accessibility. &amp;nbsp;An inline form would allow users who need assistance to more easily work with it. &amp;nbsp;This would also align more with our design in general but the accessibility issues makes it so we can't overlook it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Since the script attaches onLoad, I can't find how to send it what language the user is in. &amp;nbsp;So even though they are a spanish speaking user, they are still getting an english form from authorize.net&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. My original issue. &amp;nbsp; This is react / single page application. &amp;nbsp; Which means this script only gets loaded the first time the form is required, even if they change pages and then come back. &amp;nbsp;We could dynamically force a reload of the script by injecting a new script tag on every render like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;Element&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"script"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;src&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"accept.js"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; type&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="str"&gt;"text/javascript"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;});&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;but that is super inefficent and will make the UI extremely unresponsive since I'll continually render a button that isn't functional until a script is re-downloaded. &amp;nbsp; &amp;nbsp;Many of our users are mobile users and so having to re-download the same script over and over on their data plan isn't ideal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. The script doesn't seem to read scroll position at all, so the modal renders off the screen. &amp;nbsp;If we could render the form inline then this would fix this issue, here is a gif of it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="https://i.imgur.com/N8Jwxty.gif" border="0" alt="" width="392" height="672" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 18:12:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60893#M35403</guid>
      <dc:creator>sontek</dc:creator>
      <dc:date>2017-12-18T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60897#M35407</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/21382"&gt;@Anurag&lt;/a&gt;&amp;nbsp;To help with this conversation, I've created a demo:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.webpackbin.com/bins/-L0f2-7FM8vleda4TOZX" target="_blank"&gt;https://www.webpackbin.com/bins/-L0f2-7FM8vleda4TOZX&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This demo dynamically loads the script *every time*, which is inefficient, but it mostly works. &amp;nbsp;You'll see we get lots of errors in the console if you swap between "review" and "pay":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Uncaught TypeError: Cannot read property 'addEventListener' of undefined
    at g (VM8036 AcceptUI.js:1)
    at e (VM8036 AcceptUI.js:1)
    at window.AcceptUI (VM8036 AcceptUI.js:1)
    at VM8036 AcceptUI.js:1&lt;/PRE&gt;&lt;P&gt;but other than that console errors (which we can't deploy with, we'd be alerted that there are production javascript errors), the UI mostly functions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issues it shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The scroll error, shrink your window so you have to scroll and then click the payment button&lt;/P&gt;&lt;P&gt;2. I have no way to set a response handler. &amp;nbsp;This script assumes we have a global javascript function but we use modern javascript with ES6/React and don't have any globals. &amp;nbsp;So we need a way to set a callback that isn't a string data attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also don't know how to do my questions from earlier:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- How do I make the modal accessible with aria attributes&lt;/P&gt;&lt;P&gt;- How do I set what language I need the form rendered in&lt;/P&gt;&lt;P&gt;- How do I prevent the javascript errors in the console&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 19:28:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60897#M35407</guid>
      <dc:creator>sontek</dc:creator>
      <dc:date>2017-12-18T19:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60904#M35414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22837"&gt;@sontek&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details on it .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The strolling issue team is planning of fixing in the upcoming release .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have provided details on the other issues to the team and will keep you posted .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 06:10:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60904#M35414</guid>
      <dc:creator>Anurag</dc:creator>
      <dc:date>2017-12-19T06:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60910#M35420</link>
      <description>&lt;P&gt;It seems to me that you are loading the acceptUI.js&amp;nbsp;with button,&lt;/P&gt;&lt;P&gt;Can you Please try just to load it on application initialization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need acceptUI to be loaded with application initialization and it should stay on page.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 20:16:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60910#M35420</guid>
      <dc:creator>Shoagraw</dc:creator>
      <dc:date>2017-12-19T20:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60911#M35421</link>
      <description>&lt;P&gt;Also related to responseHandler, I can see you have it inside your class, here what you need to do is&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- define a response handler at window level [top level]&lt;/P&gt;&lt;P&gt;-- call your inside function from there react Statics can also help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 21:48:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/60911#M35421</guid>
      <dc:creator>Shoagraw</dc:creator>
      <dc:date>2017-12-19T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/64021#M38024</link>
      <description>&lt;P&gt;Hi - I'm still seeing the issue where the Accept.js modal is scrolled off the screen.&amp;nbsp; Is this going to be fixed?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Aug 2018 14:55:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/64021#M38024</guid>
      <dc:creator>tjmoretto</dc:creator>
      <dc:date>2018-08-04T14:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/65709#M39333</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not hesitate to let me know if this kind of posts&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;are&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;not welcome here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am the creator and maintainer of&amp;nbsp;&lt;A href="https://github.com/j-em/react-authorize-net" target="_self"&gt;react-authorize-net&lt;/A&gt;, which is a React library aiming to make the integration of the Authorize.Net platform with a React application as smooth as possible.&lt;/P&gt;&lt;P&gt;I hope this can be as useful to others as it has been for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Constructive feedback is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 02:02:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/65709#M39333</guid>
      <dc:creator>j-em</dc:creator>
      <dc:date>2019-01-13T02:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js) - Mukesh jaiswal</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66753#M40260</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;If you are using ReactJs then you need to call this function in Component&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Issue resolved: addEventListner is undefined&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;loadScript:&lt;/STRONG&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;tag&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;document&lt;/SPAN&gt;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;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;loadScript&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://jstest.authorize.net/v3/AcceptUI.js" target="_blank"&gt;https://jstest.authorize.net/v3/AcceptUI.js&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now my issue resolved&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:25:35 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66753#M40260</guid>
      <dc:creator>mukesh1619</dc:creator>
      <dc:date>2019-03-05T15:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js) - Mukesh jaiswal</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66754#M40261</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;If you are using ReactJs then you need to call this function in Component&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Issue resolved: addEventListner is undefined&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;loadScript:&lt;/STRONG&gt; &lt;SPAN&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp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bsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;In&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;componentDidMount()&lt;/STRONG&gt;:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;loadScript&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://jstest.authorize.net/v3/AcceptUI.js" target="_blank"&gt;https://jstest.authorize.net/v3/AcceptUI.js&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now my issue resolved&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:29:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66754#M40261</guid>
      <dc:creator>mukesh1619</dc:creator>
      <dc:date>2019-03-05T15:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66773#M40280</link>
      <description>&lt;DIV&gt;&lt;STRONG&gt;If you are using React.js then you need to follow below things to render the script after button render:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;loadScript: function (src) {&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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t;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;And in&amp;nbsp;componentDidMount()&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;componentDidMount&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;loadScript&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://jstest.authorize.net/v3/AcceptUI.js" target="_blank"&gt;https://jstest.authorize.net/v3/AcceptUI.js&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Mar 2019 05:45:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66773#M40280</guid>
      <dc:creator>mukesh1619</dc:creator>
      <dc:date>2019-03-06T05:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js) - Mukesh kumar jaiswal</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66774#M40281</link>
      <description>&lt;DIV&gt;&lt;STRONG&gt;If you are using React.js then you need to follow below things to render the script after button render:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;loadScript: function (src) {&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;tag&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;createElement&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'script'&lt;/SPAN&gt;&lt;SPAN&gt;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;tag&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;src&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;src&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;body&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;appendChild&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tag&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;And in&amp;nbsp;componentDidMount()&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;componentDidMount&lt;/SPAN&gt;&lt;SPAN&gt;() {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;loadScript&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;A href="https://jstest.authorize.net/v3/AcceptUI.js" target="_blank"&gt;https://jstest.authorize.net/v3/AcceptUI.js&lt;/A&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 Mar 2019 05:49:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66774#M40281</guid>
      <dc:creator>mukesh1619</dc:creator>
      <dc:date>2019-03-06T05:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js) - Mukesh kumar jaiswal</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66971#M40461</link>
      <description>&lt;P&gt;The problem with this solution is that the script is added to the dom each time the user returns to the page in the context of the single page app. If the user is on the page with the Pay button, then hits the back button, then goes back to the page with the Pay button, the script will be injected into the dom again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This causes the callback to be called several times, which then returns multiple errors for Anet when the transaction is processed.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2019 00:47:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/66971#M40461</guid>
      <dc:creator>kevintechie</dc:creator>
      <dc:date>2019-03-16T00:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js) - Mukesh kumar jaiswal</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/67045#M40532</link>
      <description>&lt;P&gt;Error messages caused by multiple calls to the callback function include invalid OTS token&amp;nbsp;E00114 and duplicate transaction errors.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 16:53:37 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/67045#M40532</guid>
      <dc:creator>kevintechie</dc:creator>
      <dc:date>2019-03-19T16:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using accept.js in a single page app (react.js)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/71058#M43729</link>
      <description>&lt;P&gt;Your share is essential. I also used &lt;A href="https://techcrue.com/" target="_self"&gt;Mod apk applications for android&lt;/A&gt; on TechCrue.com, most of them are similar to yours.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 09:58:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-accept-js-in-a-single-page-app-react-js/m-p/71058#M43729</guid>
      <dc:creator>ArmandoBaldwin</dc:creator>
      <dc:date>2020-03-13T09:58:56Z</dc:date>
    </item>
  </channel>
</rss>

