<?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 CustomerPaymentProfileMaskedType in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/12752#M7748</link>
    <description>&lt;P&gt;In case anyone stumbles on this also - if you look at the declaration for the item property, it's decalred as an object - it could be either&amp;nbsp;typeof(BankAccountMaskedType) or&amp;nbsp;typeof(CreditCardMaskedType) - so in this case, if you said:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var card = profile.paymentProfile.payment.Item as CreditCardMaskedType;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you would then get card.cardNumber,&amp;nbsp;card.expirationDate, card.cardType properties exposed as you would expect.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2011 17:26:50 GMT</pubDate>
    <dc:creator>Cory</dc:creator>
    <dc:date>2011-05-09T17:26:50Z</dc:date>
    <item>
      <title>CIM CustomerPaymentProfileMaskedType</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/3506#M3197</link>
      <description>&lt;P&gt;I'm working on a custom CIM integration using C#. Everything is working, but I need the ability to display to our support reps the last 4 digits of the customers CC that is associated with their Customer Profile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get everything back in the CustomerPaymentProfileMaskedType object and I can visually see Masked Credit Card Number...but cannot get ahold of it to display it back...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As an example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;customerProfile.paymentProfiles[0].payment.Item.???&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I debut...I can see that the payment.Item has the Credit Card Information in it...but I cannot access it otherwise...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing...how can I display back this information.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2010 21:25:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/3506#M3197</guid>
      <dc:creator>djdestasio11</dc:creator>
      <dc:date>2010-06-10T21:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: CIM CustomerPaymentProfileMaskedType</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/3508#M3199</link>
      <description>Never mind. I found the answer in another post :) ((AuthorizeDotNet.ArbApiSoap.CreditCardMaskedType)customerProfile.paymentProfiles[0].payment.Item).cardNumber;</description>
      <pubDate>Thu, 10 Jun 2010 21:32:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/3508#M3199</guid>
      <dc:creator>djdestasio11</dc:creator>
      <dc:date>2010-06-10T21:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: CIM CustomerPaymentProfileMaskedType</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/12752#M7748</link>
      <description>&lt;P&gt;In case anyone stumbles on this also - if you look at the declaration for the item property, it's decalred as an object - it could be either&amp;nbsp;typeof(BankAccountMaskedType) or&amp;nbsp;typeof(CreditCardMaskedType) - so in this case, if you said:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;var card = profile.paymentProfile.payment.Item as CreditCardMaskedType;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you would then get card.cardNumber,&amp;nbsp;card.expirationDate, card.cardType properties exposed as you would expect.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2011 17:26:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-CustomerPaymentProfileMaskedType/m-p/12752#M7748</guid>
      <dc:creator>Cory</dc:creator>
      <dc:date>2011-05-09T17:26:50Z</dc:date>
    </item>
  </channel>
</rss>

