06-10-2010 02:25 PM
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.
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...
As an example:
When I debut...I can see that the payment.Item has the Credit Card Information in it...but I cannot access it otherwise...
What am I missing...how can I display back this information.
05-09-2011 10:26 AM
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 typeof(BankAccountMaskedType) or typeof(CreditCardMaskedType) - so in this case, if you said:
var card = profile.paymentProfile.payment.Item as CreditCardMaskedType;
you would then get card.cardNumber, card.expirationDate, card.cardType properties exposed as you would expect.