Reply
Highlighted
Member
Posts: 1
Registered: ‎05-19-2014

Transaction API GetTransactionDetails does not return Credit Card Number or Exp Date - Help!

 
Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Transaction API GetTransactionDetails does not return Credit Card Number or Exp Date - Help!

The Transaction Details API will never provide you the full credit card number of a transaction or the unmasked expiration date. It will always look something like this:

 

<creditCard>
    <cardNumber>XXXX8888</cardNumber>
    <expirationDate>XXXX</expirationDate>
    <cardType>Visa</cardType>
</creditCard>

 

Richard

Highlighted
Contributor
Posts: 30
Registered: ‎06-19-2015

Re: Transaction API GetTransactionDetails does not return Credit Card Number or Exp Date - Help!

Hi, Can we unmask the detail like following?

 

$details=$authObj->getTransactionDetails(60116529057);

$creditCardExpdate = (creditCardMaskedType)$details->getTransaction()->getPayment()->getcreditCard()->getexpirationDate();

echo $creditCardExpdate;

exit;

 

Thanks in advance for assist.

Kalpesh