<?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: E00059:The authentication type is not allowed for this method call. Getting Subscription Status in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55527#M30396</link>
    <description>&lt;P&gt;I basically copied the example code from the GitHub repo here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/RecurringBilling/GetSubscriptionStatus.cs" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/RecurringBilling/GetSubscriptionStatus.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I be using?&lt;/P&gt;</description>
    <pubDate>Sat, 20 Aug 2016 15:10:56 GMT</pubDate>
    <dc:creator>joe_coolish</dc:creator>
    <dc:date>2016-08-20T15:10:56Z</dc:date>
    <item>
      <title>E00059:The authentication type is not allowed for this method call. Getting Subscription Status</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55524#M30393</link>
      <description>&lt;P&gt;I'm trying to get the status of a subscription using the .NET SDK&amp;nbsp;and I'm getting the following error message on my controller:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E00059:The authentication type is not allowed for this method call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var authorizeLoginId = ConfigurationManager.AppSettings["authorizeLoginId"];
var authorizeTransactionKey = ConfigurationManager.AppSettings["authorizeTransactionKey"];


ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.MerchantAuthentication = new merchantAuthenticationType()
{
    name = authorizeLoginId,
    ItemElementName = ItemChoiceType.transactionKey,
    Item = authorizeTransactionKey,
};

ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = AuthorizeNet.Environment.SANDBOX;


var request = new ARBGetSubscriptionStatusRequest { subscriptionId = subscriptionId };

var controller = new ARBGetSubscriptionStatusController(request);                          // instantiate the contoller that will call the service
controller.Execute();

if (controller.GetResultCode() == messageTypeEnum.Error)
{
    telemetry.TrackTrace("Error getting subscription status: " + subscriptionId, Microsoft.ApplicationInsights.DataContracts.SeverityLevel.Error, controller.GetResults().Select((x, i) =&amp;gt; new { Item = x, Index = i }).ToDictionary(x =&amp;gt; x.Item, x =&amp;gt; "Message" + x.Index));
    return null;
}&lt;/PRE&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 04:54:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55524#M30393</guid>
      <dc:creator>joe_coolish</dc:creator>
      <dc:date>2016-08-20T04:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: E00059:The authentication type is not allowed for this method call. Getting Subscription Status</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55526#M30395</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20404"&gt;@joe_coolish﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using the API Login with the transaction key? &amp;nbsp;You cannot use a user's Login ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 14:11:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55526#M30395</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-08-20T14:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: E00059:The authentication type is not allowed for this method call. Getting Subscription Status</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55527#M30396</link>
      <description>&lt;P&gt;I basically copied the example code from the GitHub repo here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sample-code-csharp/blob/master/RecurringBilling/GetSubscriptionStatus.cs" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-csharp/blob/master/RecurringBilling/GetSubscriptionStatus.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I be using?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 15:10:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55527#M30396</guid>
      <dc:creator>joe_coolish</dc:creator>
      <dc:date>2016-08-20T15:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: E00059:The authentication type is not allowed for this method call. Getting Subscription Status</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55528#M30397</link>
      <description>&lt;P&gt;D'oh!&amp;nbsp; I was using the prod key in the sandbox!&amp;nbsp; Make sure to use the right key!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 18:52:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/E00059-The-authentication-type-is-not-allowed-for-this-method/m-p/55528#M30397</guid>
      <dc:creator>joe_coolish</dc:creator>
      <dc:date>2016-08-20T18:52:34Z</dc:date>
    </item>
  </channel>
</rss>

