cancel
Showing results for 
Search instead for 
Did you mean: 

Hosted Payment Page, Credit card expiry date

Hello,

 

I'm trying to intergrate Authorize.Net hosted payment page into my software.

I manage to display the hosted page, and get response to my communicator page, but the response

doesn't conatin the credit card expiry date field.

This is the reponse I get:

action=transactResponse&response={"accountType":"AmericanExpress","accountNumber":"XXXX0002","transId":"40005426675","responseCode":"1","authorization":"WCY8A4","billTo":{},"shipTo":{},"totalAmount":"1.00","dateTime":"7/18/2017 7:01:59 AM"}"

Is there a way I can get this field?

 

I also tried later getting the transaction details by calling the API function getTransactionDetailsRequest, but the expiry date I get is Masked XX/XX.

 

Thanks,

Avia

Avia
Member
3 REPLIES 3

Hello,

 

There is currently a way to unmask credit card expiration dates with the CIM getCustomerProfileRequest and getCustomerPaymentProfileRequest API calls by including the following:

<unmaskExpirationDate>true</unmaskExpirationDate>

or

<unmaskExpirationDate>1</unmaskExpirationDate>

 

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Hello,

Thank you for your reply!

Is there a way to get the credit card expiry date without using Customer profiles?

Based on the schema at https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd, those are the only 2 calls that currently support unmasked expiration dates.
Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor