<?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: CIM createPaymentProfile expiration date invalid in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createPaymentProfile-expiration-date-invalid/m-p/37083#M20575</link>
    <description>&lt;P&gt;used&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;String date = year.ToString("yyyy-MM")&lt;BR /&gt;&lt;BR /&gt;instead of converting and merging mannually. but still dint get the answer why it wasnt working previously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2013 10:43:52 GMT</pubDate>
    <dc:creator>nik_0811</dc:creator>
    <dc:date>2013-11-28T10:43:52Z</dc:date>
    <item>
      <title>CIM createPaymentProfile expiration date invalid</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createPaymentProfile-expiration-date-invalid/m-p/37081#M20574</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im using asp.net MVC 4 and CIM api to store the details of credit card on authorize.net server. The expiration date to be entered by the user. i have a view from where user can enter the date but when i attempt to store it on authorize.net server i recive an error that a required value is missing. Below is the code that converts the date variable into string i debugged and checked the values are same in the date string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DateTime year = Convert.ToDateTime(form["date"]);
            String.Format("{0:yyyy}",year);
            DateTime month = Convert.ToDateTime(form["date"]);
            String.Format("{0:mm}", month);
            String date = year.ToString("yyyy").Trim() + "-".Trim() + month.ToString("MM").Trim();
            
            CreditCardType new_card = new CreditCardType();
            new_card.cardNumber = form["cardno"];//"4111111111111111";
            new_card.expirationDate = date;// "2016-10"; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If i enter the commented string i can store the details but cant do it using the variable&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 09:30:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createPaymentProfile-expiration-date-invalid/m-p/37081#M20574</guid>
      <dc:creator>nik_0811</dc:creator>
      <dc:date>2013-11-28T09:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: CIM createPaymentProfile expiration date invalid</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createPaymentProfile-expiration-date-invalid/m-p/37083#M20575</link>
      <description>&lt;P&gt;used&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;String date = year.ToString("yyyy-MM")&lt;BR /&gt;&lt;BR /&gt;instead of converting and merging mannually. but still dint get the answer why it wasnt working previously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 10:43:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-createPaymentProfile-expiration-date-invalid/m-p/37083#M20575</guid>
      <dc:creator>nik_0811</dc:creator>
      <dc:date>2013-11-28T10:43:52Z</dc:date>
    </item>
  </channel>
</rss>

