<?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: ARB Update Subscription, Only Certain Fields C# .NET in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49267#M24866</link>
    <description>&lt;P&gt;Look comparable to the sdks test&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/AuthorizeNet/sdk-dotnet/blob/master/AuthorizeNETtest/SubscriptionGatewayTest.cs"&gt;https://github.com/AuthorizeNet/sdk-dotnet/blob/master/AuthorizeNETtest/SubscriptionGatewayTest.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also test it with a test account&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2015 15:16:42 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2015-01-07T15:16:42Z</dc:date>
    <item>
      <title>ARB Update Subscription, Only Certain Fields C# .NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49265#M24864</link>
      <description>&lt;P&gt;I am trying to update certain parameters of a subscription in C# .net MVC, as opposed to all, I am wondering if the following code approach is correct, and will leave other parameters (specified in the original subscription) unchanged. For instance, I am not specifying (or wanting to change) start date&amp;nbsp;or remaning number of cycles. Would those remain unchanged, or am I approaching this wrong:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    public string UpdateCCSubscription( SubscriptionGateway gate, string subscriptionId, string customerId, string email, string subscriptionName, decimal amount, string cardNumber, int cardMonth, int cardYear, string billToFirst, string billToLast, string billToState, bool isMonthly ) {
      
      ISubscriptionRequest subscription;
      
      if (isMonthly)
      subscription = SubscriptionRequest.CreateMonthly( email, subscriptionName, amount );
      else
      subscription = SubscriptionRequest.CreateAnnual( email, subscriptionName, amount );

      subscription.SubscriptionID = subscriptionId;
      subscription.CardNumber = cardNumber;
      subscription.CardExpirationMonth = cardMonth;
      subscription.CardExpirationYear = cardYear;
      subscription.CustomerID = customerId;

      AuthorizeNet.Address billToAddress = new AuthorizeNet.Address();
      billToAddress.First = billToFirst;
      billToAddress.Last = billToLast;
      billToAddress.State = billToState;
      subscription.BillingAddress = billToAddress;

      try {
        gate.UpdateSubscription( subscription );
        return "Updated"; 
      }
      catch( Exception e ) {
        string s = e.Message;
        Console.WriteLine( "Failed to update SUB: " + e.ToString() );
        return null;
      }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:06:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49265#M24864</guid>
      <dc:creator>bobbydoogle</dc:creator>
      <dc:date>2015-01-07T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Update Subscription, Only Certain Fields C# .NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49267#M24866</link>
      <description>&lt;P&gt;Look comparable to the sdks test&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/AuthorizeNet/sdk-dotnet/blob/master/AuthorizeNETtest/SubscriptionGatewayTest.cs"&gt;https://github.com/AuthorizeNet/sdk-dotnet/blob/master/AuthorizeNETtest/SubscriptionGatewayTest.cs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also test it with a test account&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:16:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49267#M24866</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-01-07T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: ARB Update Subscription, Only Certain Fields C# .NET</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49269#M24868</link>
      <description>&lt;P&gt;Okay the examples seem to show just required change fields being specified, I'll try to run some tests but it looks like it will not overwright fields that are not specified/changed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:35:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Update-Subscription-Only-Certain-Fields-C-NET/m-p/49269#M24868</guid>
      <dc:creator>bobbydoogle</dc:creator>
      <dc:date>2015-01-07T15:35:07Z</dc:date>
    </item>
  </channel>
</rss>

