<?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: 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/18796#M10401</link>
    <description>&lt;P&gt;Run a few more test. space before and after in the token field didn't cause an error. Did you change the letter case in token? or remove char like the forward slash "/"?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2011 17:48:45 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2011-11-10T17:48:45Z</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/18766#M10386</link>
      <description>&lt;P&gt;I am evaluating Authorize.Net as a likely solution for initial and re-curing billing for my Saas application. I have been putting together a proof of concept for my manager. It is an ASP.Net WinForms app. I have been following the examples from the csharp_cim and hostedProfileManage downloads. Also with help from the documentation I've been able to get most everything working in a suprisingly small amount of time. I am however having an issue getting the pop-up to display the users profile to enter payment options. I have implemented it per the hostedProfileManage&amp;nbsp; example and I am generating the token per the csharp_cim example. When the popup displays it gives me the error "Missing or invalid token." I have verified that the token is populated in the hidden form per the example and that the token is recently generated. I noticed that the token that I get is about half as long as the token that was pre-populated in the example, I'm not sure if that's normal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advise you can offer will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 22:28:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18766#M10386</guid>
      <dc:creator>dscott_amt</dc:creator>
      <dc:date>2011-11-09T22:28:36Z</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/18788#M10397</link>
      <description>&lt;P&gt;Since the token required the loginID and transactionKey. Maybe it enter wrong? or it try to get it from the wrong URL(sandbox vs production)?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 12:32:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18788#M10397</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-11-10T12:32:02Z</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/18790#M10398</link>
      <description>&lt;P&gt;Here is the code&amp;nbsp;that I am using. It seems to work correctly. I get a response code OK and a token returns. I steped through the javascript to ensure that it is setting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;form.action = &lt;FONT color="#a31515" size="2"&gt;&lt;FONT color="#a31515" size="2"&gt;"&lt;A href="https://test.authorize.net/profile/" target="_blank"&gt;https://test.authorize.net/profile/&lt;/A&gt;"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;+ opt.action;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;and that the value of &lt;/FONT&gt;hdnToken in the form is set to what was returned by the GetToken function.&lt;/P&gt;&lt;P&gt;opt.action is set to "manage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;private string GetToken(long custProfId )
{
    CustomerProfileWS.Service service = new CustomerProfileWS.Service();
    service.Url = "&lt;A href="https://apitest.authorize.net/soap/v1/Service.asmx" target="_blank"&gt;https://apitest.authorize.net/soap/v1/Service.asmx&lt;/A&gt;";

    CustomerProfileWS.MerchantAuthenticationType auth = new CustomerProfileWS.MerchantAuthenticationType();
    auth.name = "MY_API_LOGIN_ID";
    auth.transactionKey = "MY_TRANSACTION_KEY";

    CustomerProfileWS.GetHostedProfilePageResponseType resp = service.GetHostedProfilePage(auth, custProfId, null);

    if (resp.resultCode == AuthorizeNetSandbox.CustomerProfileWS.MessageTypeEnum.Ok)
    {
        return resp.token;
    }
    else
    {
        foreach (CustomerProfileWS.MessagesTypeMessage message in resp.messages)
            System.Diagnostics.Debug.WriteLine(string.Format("[Code: {0}] {1}", message.code, message.text));
    }
    return string.Empty;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any additional help will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 14:59:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18790#M10398</guid>
      <dc:creator>dscott_amt</dc:creator>
      <dc:date>2011-11-10T14:59:55Z</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/18792#M10399</link>
      <description>&lt;P&gt;Question. So you did uncomment the line?&lt;/P&gt;&lt;PRE&gt;AuthorizeNetPopup.options.useTestEnvironment = true;&lt;/PRE&gt;&lt;P&gt;2. Have you debug the getToken and copy and paste the result to the examplePage.html?&lt;/P&gt;&lt;P&gt;3. Make sure there is no space between the double quote for the Token hidden field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It work for me with your code. I copied your code to the sample code for C# soap cim. Updated the web reference, call your method with my test loginID, Key and custprofid. and copy and paste the resp.token to the examplePage.html and uncomment the usetestenvironment = true line. Run the html in IE and it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 16:52:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18792#M10399</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-11-10T16:52:48Z</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/18794#M10400</link>
      <description>&lt;P&gt;Forgot to tell you, the token I got is shorter than the one in the examplePage.html.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:13:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18794#M10400</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-11-10T17:13:46Z</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/18796#M10401</link>
      <description>&lt;P&gt;Run a few more test. space before and after in the token field didn't cause an error. Did you change the letter case in token? or remove char like the forward slash "/"?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:48:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18796#M10401</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-11-10T17:48:45Z</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/18798#M10402</link>
      <description>&lt;P&gt;I hadn't tried copying the token into the examplepage.html. That worked. This tells me that I must have not copied something correctly from the example page to my application. Thank you so much for the suggestion!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:53:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Missing-or-invalid-token/m-p/18798#M10402</guid>
      <dc:creator>dscott_amt</dc:creator>
      <dc:date>2011-11-10T17:53:48Z</dc:date>
    </item>
  </channel>
</rss>

