cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving masked CC# from CIM in VB.net

Hey guys,

 

I have run into an issue using CIM. I call the following function:

    AuthorizeUtilities.Service.GetCustomerPaymentProfile(AuthorizeUtilities.MerchantAuthentication, cid, pid)

 

This returns a CustomerProfileWS.GetCustomerPaymentProfileResponseType object. According to the API, I should be able to say profile.paymentProfile.CreditCard. However, the creditCard attribute of paymentProfile causes compile errors saying that the attribute does not exist.

 

Am I missing something here?

pfrancis
Member
1 ACCEPTED SOLUTION

Accepted Solutions

This is in C#, is because item can be either bank account and credti card.

 

CustomerProfileWS.CreditCardMaskedType _cmt = (CustomerProfileWS.CreditCardMaskedType)profile.paymentProfile.payment.Item;

View solution in original post

RaynorC1emen7
Expert
1 REPLY 1

This is in C#, is because item can be either bank account and credti card.

 

CustomerProfileWS.CreditCardMaskedType _cmt = (CustomerProfileWS.CreditCardMaskedType)profile.paymentProfile.payment.Item;

RaynorC1emen7
Expert