<?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 Hosted With Angular 2+ Project in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Accept-Hosted-With-Angular-2-Project/m-p/63166#M37345</link>
    <description>&lt;P&gt;I was able to get the token for the Accept Hosted Iframe, post it to &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt; and get the correct HTML back, but I can't seem to figure out how I should load the acceptUI script within the angular project. Putting the script tag in index.html doesn't work. loading the script inside the component with a script loader after the button is initialized doesn't work. And even converting the script to a string and insterting it into the head of the iframe before injecting the html body to the iframe also doesn't work. I tried looking at the accept-sample-app, but I don't know php very well and translating it to a Nodejs Angular set up is confusing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANY ADVICE ON WHERE I SHOULD PUT THE ACCEPTUI.JS SCRIPT IS GREATLY APPRECIATED &amp;lt;3&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 21:01:39 GMT</pubDate>
    <dc:creator>lukasat1union</dc:creator>
    <dc:date>2018-05-22T21:01:39Z</dc:date>
    <item>
      <title>Using Accept Hosted With Angular 2+ Project</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Accept-Hosted-With-Angular-2-Project/m-p/63166#M37345</link>
      <description>&lt;P&gt;I was able to get the token for the Accept Hosted Iframe, post it to &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt; and get the correct HTML back, but I can't seem to figure out how I should load the acceptUI script within the angular project. Putting the script tag in index.html doesn't work. loading the script inside the component with a script loader after the button is initialized doesn't work. And even converting the script to a string and insterting it into the head of the iframe before injecting the html body to the iframe also doesn't work. I tried looking at the accept-sample-app, but I don't know php very well and translating it to a Nodejs Angular set up is confusing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ANY ADVICE ON WHERE I SHOULD PUT THE ACCEPTUI.JS SCRIPT IS GREATLY APPRECIATED &amp;lt;3&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 21:01:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Using-Accept-Hosted-With-Angular-2-Project/m-p/63166#M37345</guid>
      <dc:creator>lukasat1union</dc:creator>
      <dc:date>2018-05-22T21:01:39Z</dc:date>
    </item>
  </channel>
</rss>

