<?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 - Free Trial - Both Trial Amount and Trial Occurrences are required? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28670#M15092</link>
    <description>&lt;P&gt;We'll pass your comments onto our documentation team, thanks for the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2012 15:23:53 GMT</pubDate>
    <dc:creator>RichardH</dc:creator>
    <dc:date>2012-08-09T15:23:53Z</dc:date>
    <item>
      <title>ARB - Free Trial - Both Trial Amount and Trial Occurrences are required?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28510#M15017</link>
      <description>&lt;P&gt;I am using the AuthNetWS interface to ARB. I am attempting to use the Trial Period option for a subscription. It appears that if I set the TrialAmount = 0 then I recieve the "&lt;!--  StartFragment  --&gt;&lt;SPAN&gt;Both Trial Amount and Trial Occurrences are required." error. What am I doing wrong? Is having a 1 month free possible? My example shows 1 month free and 11 month @ $49.95 for 12 month total.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the code I am using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;// create subscription and card objects from App_Code\ArbApiInterface.cs&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AuthNetWS.&lt;SPAN&gt;ARBSubscriptionType&lt;/SPAN&gt; subscription = &lt;SPAN&gt;new&lt;/SPAN&gt; AuthNetWS.&lt;SPAN&gt;ARBSubscriptionType&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;// subscription name&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.name = &lt;SPAN&gt;"Sample Subscription"&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;// payment info&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.payment = &lt;SPAN&gt;new&lt;/SPAN&gt; AuthNetWS.&lt;SPAN&gt;PaymentType&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.payment.Item = creditCard;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;// billing info&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.billTo = billToAddress;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;// add subscription for 12 monthly installments&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule = &lt;SPAN&gt;new&lt;/SPAN&gt; AuthNetWS.&lt;SPAN&gt;PaymentScheduleType&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.startDate = &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;DateTime&lt;/SPAN&gt;(&lt;SPAN&gt;DateTime&lt;/SPAN&gt;.Now.Year, &lt;SPAN&gt;DateTime&lt;/SPAN&gt;.Now.Month, &lt;SPAN&gt;DateTime&lt;/SPAN&gt;.Now.Day);&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.startDateSpecified = &lt;SPAN&gt;true&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.totalOccurrences = 12;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.totalOccurrencesSpecified = &lt;SPAN&gt;true&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.interval = &lt;SPAN&gt;new&lt;/SPAN&gt; AuthNetWS.&lt;SPAN&gt;PaymentScheduleTypeInterval&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.interval.length = 1;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.interval.unit = AuthNetWS.&lt;SPAN&gt;ARBSubscriptionUnitEnum&lt;/SPAN&gt;.months;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.trialOccurrences = 1;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.paymentSchedule.trialOccurrencesSpecified = &lt;SPAN&gt;true&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.trialAmount = 0;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.amount = 49.95;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.amountSpecified = &lt;SPAN&gt;true&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;// customer info&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.customer = &lt;SPAN&gt;new&lt;/SPAN&gt; AuthNetWS.&lt;SPAN&gt;CustomerType&lt;/SPAN&gt;();&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.customer.email = EmailTextBox.Text;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscription.customer.phoneNumber = phone;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;// add subscription to request&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subscriptionID = AuthNet.CreateSubscription(subscription);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 14:54:46 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28510#M15017</guid>
      <dc:creator>ericremington</dc:creator>
      <dc:date>2012-08-06T14:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: ARB - Free Trial - Both Trial Amount and Trial Occurrences are required?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28512#M15018</link>
      <description>&lt;P&gt;forgot the trialAmountSpecified&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 15:08:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28512#M15018</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2012-08-06T15:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: ARB - Free Trial - Both Trial Amount and Trial Occurrences are required?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28556#M15040</link>
      <description>&lt;P&gt;Thanks for the catch, it works fine now.&lt;/P&gt;&lt;P&gt;Not only was I missing that info, but so is the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2012 20:54:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28556#M15040</guid>
      <dc:creator>ericremington</dc:creator>
      <dc:date>2012-08-06T20:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: ARB - Free Trial - Both Trial Amount and Trial Occurrences are required?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28670#M15092</link>
      <description>&lt;P&gt;We'll pass your comments onto our documentation team, thanks for the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 15:23:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/ARB-Free-Trial-Both-Trial-Amount-and-Trial-Occurrences-are/m-p/28670#M15092</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2012-08-09T15:23:53Z</dc:date>
    </item>
  </channel>
</rss>

