user3857963
user3857963

Reputation: 49

How to get credit card details from in plain text while using Authorize.Net API getCustomerProfileRequest?

I am trying to get the creditcardNumber which is being sent by Authorize.Net API while calling getCustomerProfileRequest in the form of XXX411. I want to read the actual cardNumber.

I am using response.profile.paymentProfiles(0).payment.Item.cardNumber.ToString()

This is returning masked value.

Upvotes: 0

Views: 887

Answers (2)

rhldr
rhldr

Reputation: 1069

A customer profile can be used for payment transactions, just change the payment object to Charge a Customer Profile.

Upvotes: 2

John Conde
John Conde

Reputation: 219894

It is not possible to get the full card number back from Authorize.Net. The purpose of creating the payment profile is so you never have to deal with the credit card number once it is created thus reducing your PCI compliance scope and level of risk as well as offer a level of convenience to you when making payments against that credit card. There is no need to get the card number back as you have no reason to have it.

Upvotes: 1

Related Questions