<?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 Javascript errors loading iframe in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Javascript-errors-loading-iframe/m-p/67670#M41032</link>
    <description>&lt;P&gt;I have the embeded iframe working on my my domain: example.com (for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a new version of the website under dev.example.com. The code is exactly the same, but I was getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error creating payment request DOMException: Failed to construct 'PaymentRequest': Must be in a top-level browsing context or an iframe needs to specify 'allowpaymentrequest' explicitly&lt;BR /&gt;at &lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57157" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57157&lt;/A&gt;&lt;BR /&gt;at Object.84 (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57396" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57396&lt;/A&gt;)&lt;BR /&gt;at e (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267&lt;/A&gt;)&lt;BR /&gt;at &lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:301" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:301&lt;/A&gt;&lt;BR /&gt;at Object.97../constants (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:7:39878" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:7:39878&lt;/A&gt;)&lt;BR /&gt;at e (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267&lt;/A&gt;)&lt;BR /&gt;at a (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:425" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:425&lt;/A&gt;)&lt;BR /&gt;at &lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:453" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:453&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw someone on the board suggested adding the "allowpaymentrequest" option to the iframe and that error went away and now I am getting a new one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unable to make a HEAD request to "&lt;A href="https://android.com/pay" target="_blank"&gt;https://android.com/pay&lt;/A&gt;" for payment method manifest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone having this problem or know of a way to solve it?&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 14:59:56 GMT</pubDate>
    <dc:creator>fearloathing</dc:creator>
    <dc:date>2019-05-10T14:59:56Z</dc:date>
    <item>
      <title>Javascript errors loading iframe</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Javascript-errors-loading-iframe/m-p/67670#M41032</link>
      <description>&lt;P&gt;I have the embeded iframe working on my my domain: example.com (for example)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a new version of the website under dev.example.com. The code is exactly the same, but I was getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error creating payment request DOMException: Failed to construct 'PaymentRequest': Must be in a top-level browsing context or an iframe needs to specify 'allowpaymentrequest' explicitly&lt;BR /&gt;at &lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57157" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57157&lt;/A&gt;&lt;BR /&gt;at Object.84 (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57396" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:57396&lt;/A&gt;)&lt;BR /&gt;at e (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267&lt;/A&gt;)&lt;BR /&gt;at &lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:301" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:301&lt;/A&gt;&lt;BR /&gt;at Object.97../constants (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:7:39878" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:7:39878&lt;/A&gt;)&lt;BR /&gt;at e (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:267&lt;/A&gt;)&lt;BR /&gt;at a (&lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:425" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:425&lt;/A&gt;)&lt;BR /&gt;at &lt;A href="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:453" target="_blank"&gt;https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/integration/v1/sdk.js:6:453&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw someone on the board suggested adding the "allowpaymentrequest" option to the iframe and that error went away and now I am getting a new one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unable to make a HEAD request to "&lt;A href="https://android.com/pay" target="_blank"&gt;https://android.com/pay&lt;/A&gt;" for payment method manifest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone having this problem or know of a way to solve it?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 14:59:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Javascript-errors-loading-iframe/m-p/67670#M41032</guid>
      <dc:creator>fearloathing</dc:creator>
      <dc:date>2019-05-10T14:59:56Z</dc:date>
    </item>
  </channel>
</rss>

