cancel
Showing results for 
Search instead for 
Did you mean: 

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

 
renanj
Member
2 REPLIES 2

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

RichardH
Administrator Administrator
Administrator

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