Integration and Testing

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

Reply
Member
Posts: 1
Registered: ‎08-14-2011

CIM: Any way that can get the first digit of a credit card number of a customer payment profile

[ Edited ]

My service that uses Authorize.net CIM function need to get the type of credit card (visa, master and etc.). And I found that the CIM didn't provide a method to get the credit card type.

 

 

The credit card type can be confirmed by the first digit of the credit card. But the first digit of credit card number which is get from CIM getCustomerPaymentProfile method is masked. Is there any way that I can get the first digit?

Posts: 1,609
Topics: 15
Kudos: 209
Solutions: 121
Registered: ‎06-23-2011

Re: CIM: Any way that can get the first digit of a credit card number of a customer payment profile

Just store the type yourself whenever the profile is updated. This won't help retroactively, of course, but I don't think there's any way to access credit card type or the first digit of the credit card through the Authorize.net API.