Reply
Contributor
Posts: 20
Registered: ‎06-04-2018

Obtaining card information after creating payment profile

After creating payment profile, I'm interested in obtaining masked card number and card's brand(like VISA).

 

I know I can obtain this information from validationDirectResponse filed  in response. But, this is a string and need to be parsed.

 

Is there any better way of getting these information ?

 

[I mean by doing something like: response.paymentProfile.Card.Brad ]

Posts: 333
Kudos: 59
Solutions: 36
Registered: ‎03-13-2017

Re: Obtaining card information after creating payment profile

[ Edited ]

Hi @asimneupane0089

 

You can call  Get Customer Payment Profile API for it . 

 

https://developer.authorize.net/api/reference/index.html#customer-profiles-get-customer-payment-prof...

 

<payment>
<creditCard>
<cardNumber>XXXX1111</cardNumber>
<expirationDate>XXXX</expirationDate>
<cardType>Visa</cardType>
<issuerNumber>411111</issuerNumber>
</creditCard>
</payment>





Send feedback at developer_feedback@authorize.net