Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎09-25-2012
Accepted Solution

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?


Accepted Solutions
Solution
Accepted by topic author pfrancis
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Retrieving masked CC# from CIM in VB.net

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


All Replies
Solution
Accepted by topic author pfrancis
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Retrieving masked CC# from CIM in VB.net

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

 

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