<?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 Missing or Invalid token in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58436#M33089</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently seeing the "Missing or Invalid Token" when trying to display host form in my iFrame. &amp;nbsp;I've read other posts in this forum regarding the same&amp;nbsp;issue and I've applied the suggestions however, I'm not having any luck. &amp;nbsp;Here are the endpoints and code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.NET C# implementation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetToken URL:&amp;nbsp;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://test.authorize.net/payment/payment&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;GetHostForm URL:&amp;nbsp;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://test.authorize.net&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can successfully retrieve a token using the provided C# code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the HTML I have implemented:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div&amp;gt;
    &amp;lt;input type="hidden" id="Token" name="Token" value="@Model.AcceptPaymentToken" /&amp;gt;
    &amp;lt;input type="hidden" name="PaymentProfileId" value="" /&amp;gt;
    &amp;lt;input type="hidden" name="ShippingAddressId" value="" /&amp;gt;

    &amp;lt;div id="divAuthorizeNetPopup" style="display:none;" class="AuthorizeNetPopupSimpleTheme"&amp;gt;
        &amp;lt;div class="AuthorizeNetPopupOuter"&amp;gt;
            &amp;lt;iframe src="/CheckOut/AuthorizePage" name="iframeAuthorizeNet" id="iframeAuthorizeNet" frameborder="0" scrolling="no"&amp;gt;&amp;lt;/iframe&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowT"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowR"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowB"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowL"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowTR"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowBR"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowBL"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowTL"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;button onclick="AuthorizeNetPopup.openAddPaymentPopup()"&amp;gt;Add a New Payment&amp;lt;/button&amp;gt;

    &amp;lt;!--
    INSTRUCTIONS:
    Put this divAuthorizeNetPopupScreen section right before the closing &amp;lt;/body&amp;gt; tag.
    --&amp;gt;
    &amp;lt;div id="divAuthorizeNetPopupScreen" style="display:none;"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have tried generating a token through the Authorize.NET GUI and paste into the examplePage.html provided in the examples section but I get the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate your help. &amp;nbsp;This has been bugging me for several days now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 19:35:52 GMT</pubDate>
    <dc:creator>kcdadmindev6</dc:creator>
    <dc:date>2017-06-13T19:35:52Z</dc:date>
    <item>
      <title>Missing or Invalid token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58436#M33089</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently seeing the "Missing or Invalid Token" when trying to display host form in my iFrame. &amp;nbsp;I've read other posts in this forum regarding the same&amp;nbsp;issue and I've applied the suggestions however, I'm not having any luck. &amp;nbsp;Here are the endpoints and code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.NET C# implementation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GetToken URL:&amp;nbsp;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://test.authorize.net/payment/payment&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;GetHostForm URL:&amp;nbsp;Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://test.authorize.net&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can successfully retrieve a token using the provided C# code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the HTML I have implemented:&lt;/P&gt;&lt;PRE&gt;&amp;lt;div&amp;gt;
    &amp;lt;input type="hidden" id="Token" name="Token" value="@Model.AcceptPaymentToken" /&amp;gt;
    &amp;lt;input type="hidden" name="PaymentProfileId" value="" /&amp;gt;
    &amp;lt;input type="hidden" name="ShippingAddressId" value="" /&amp;gt;

    &amp;lt;div id="divAuthorizeNetPopup" style="display:none;" class="AuthorizeNetPopupSimpleTheme"&amp;gt;
        &amp;lt;div class="AuthorizeNetPopupOuter"&amp;gt;
            &amp;lt;iframe src="/CheckOut/AuthorizePage" name="iframeAuthorizeNet" id="iframeAuthorizeNet" frameborder="0" scrolling="no"&amp;gt;&amp;lt;/iframe&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowT"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowR"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowB"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowL"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowTR"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowBR"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowBL"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="AuthorizeNetShadow AuthorizeNetShadowTL"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;button onclick="AuthorizeNetPopup.openAddPaymentPopup()"&amp;gt;Add a New Payment&amp;lt;/button&amp;gt;

    &amp;lt;!--
    INSTRUCTIONS:
    Put this divAuthorizeNetPopupScreen section right before the closing &amp;lt;/body&amp;gt; tag.
    --&amp;gt;
    &amp;lt;div id="divAuthorizeNetPopupScreen" style="display:none;"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;I have tried generating a token through the Authorize.NET GUI and paste into the examplePage.html provided in the examples section but I get the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate your help. &amp;nbsp;This has been bugging me for several days now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 19:35:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58436#M33089</guid>
      <dc:creator>kcdadmindev6</dc:creator>
      <dc:date>2017-06-13T19:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing or Invalid token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58439#M33092</link>
      <description>&lt;P&gt;Sorry, I left out another important piece code. &amp;nbsp;In my JS file which is supplied with the example, I have modified the form submit to use AJAX instead of the standard HTML form since I already have another form implemented on the page and I can't nest:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        $.ajax({
            type: 'POST',
            cache: false,
            dataType: 'html',
            async: false,
            url: "/CheckOut/DisplayCreditCardForm",
            data: {
                "url": action,
                "token": token,
                "paymentProfileId": paymentProfileId.value,
                "shippingAddressId": shippingAddressId.value
            },
            success: function (html) {
                $('iframeAuthorizeNet').html(html);
            },
            error: function (xhr, ajaxOptions, thrownError) {
                console.error(thrownError);
            }
        });&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:06:30 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58439#M33092</guid>
      <dc:creator>kcdadmindev6</dc:creator>
      <dc:date>2017-06-13T20:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Missing or Invalid token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58467#M33117</link>
      <description>&lt;P&gt;Ok, so disregard the AJAX I posted above. &amp;nbsp;I have reverted beack to regular HTML FORM and I am able to display the hosted page in my iFrame. &amp;nbsp;However, I'm still seeing the Missing or Invalid Token message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm retrieving the token correctly using the OUT OF THE BOX C# code provided by Authorize.NET. &amp;nbsp;I'm sending the token to &lt;A href="https://test.authorize.net/profile/manage" target="_blank"&gt;https://test.authorize.net/profile/manage&lt;/A&gt; but still no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;form method="post" action="https://test.authorize.net/profile/manage" id="formAuthorizeNetPopup" name="formAuthorizeNetPopup" target="iframeAuthorizeNet" style="display:none;"&amp;gt;
        &amp;lt;input type="hidden" id="Token" name="Token" value=""&amp;gt;
        &amp;lt;input type="hidden" id="PaymentProfileId" name="PaymentProfileId" value=""&amp;gt;
        &amp;lt;input type="hidden" id="ShippingAddressId" name="ShippingAddressId" value=""&amp;gt;
    &amp;lt;/form&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 05:37:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/58467#M33117</guid>
      <dc:creator>kcdadmindev6</dc:creator>
      <dc:date>2017-06-15T05:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Missing or Invalid token</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/72791#M44990</link>
      <description>&lt;P&gt;I'm just not implementing something similar and getting this Token error as well.&amp;nbsp; Did you resolve it?&lt;/P&gt;&lt;P&gt;I know I have the token but something is failing.&lt;/P&gt;&lt;P&gt;I could use some help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 20:55:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-Invalid-token/m-p/72791#M44990</guid>
      <dc:creator>mancusor1929</dc:creator>
      <dc:date>2020-08-08T20:55:09Z</dc:date>
    </item>
  </channel>
</rss>

