I am trying to implement Hosted Payments in my web application. I see I can get back the last four digits and the type of credit card (MasterCard, AMEX, Visa, etc...) but we would also like to save the Expiration Date from the transaction. Is this possible using Hosted Payments?
Thanks for this question, ebonfiglio. Here's the answer from our express team:
On Express, the expiration date is only considered sensitive when paired with the full PAN (card number). On its own or with the masked card number, it’s not a problem. The developer just needs to ensure they don’t include the expiration date on the receipt.
For Hosted Payments specifically, the expiration date is indeed not returned in the transaction response. However, the ISV can, very easily, query Express to retrieve the transaction details. Expiration date fields are included. The method is called TransactionQuery, using our Reporting endpoint. Here’s a sample output:
- <TransactionQueryResponse xmlns="https://reporting.elementexpress.com">
- <Response>
<ExpressResponseCode>0</ExpressResponseCode>
<ExpressResponseMessage>Success</ExpressResponseMessage>
<ExpressTransactionDate>20180201</ExpressTransactionDate>
<ExpressTransactionTime>184859</ExpressTransactionTime>
<ExpressTransactionTimezone>UTC-06:00:00</ExpressTransactionTimezone>
- <ReportingData>
- <Items>
- <Item>
<TransactionID>2626604</TransactionID>
<AcceptorID>3928907</AcceptorID>
<AccountID>1044469</AccountID>
<Name>Vantiv Integrated Payments</Name>
<TerminalID>0001</TerminalID>
<ApplicationID>133</ApplicationID>
<ApprovalNumber>000046</ApprovalNumber>
<ApprovedAmount>1.00</ApprovedAmount>
<AVSResponseCode>N</AVSResponseCode>
<CVVResponseCode>M</CVVResponseCode>
<ExpirationMonth>12</ExpirationMonth>
<ExpirationYear>25</ExpirationYear>
<ExpressResponseCode>0</ExpressResponseCode>
<ExpressResponseMessage>Approved</ExpressResponseMessage>
<HostBatchID>2</HostBatchID>
<HostItemID>3</HostItemID>
<HostResponseCode>000</HostResponseCode>
<HostResponseMessage>AP</HostResponseMessage>
<ReferenceNumber>887766</ReferenceNumber>
<TicketNumber>654321</TicketNumber>
<TrackingID>63E6725886AD41B9BC9F56A5CF7D7335</TrackingID>
<TerminalType>0</TerminalType>
<TransactionAmount>1.00</TransactionAmount>
<TransactionStatus>Approved</TransactionStatus>
<TransactionStatusCode>1</TransactionStatusCode>
<TransactionType>CreditCardSale</TransactionType>
<CardNumberMasked>xxxx-xxxx-xxxx-0006</CardNumberMasked>
<CardLogo>Visa</CardLogo>
<CardType>Credit</CardType>
<TrackDataPresent>FALSE</TrackDataPresent>
<TransactionSetupID>7991CD8B-FC69-4E5C-B0F5-4C4E90475F8B</TransactionSetupID>
<BillingAddress1>123 Main</BillingAddress1>
<BillingZipCode>85044</BillingZipCode>
<ExpressTransactionDate>20180201</ExpressTransactionDate>
<ExpressTransactionTime>184630</ExpressTransactionTime>
<TimeStamp>2018-02-01T18:46:23.707</TimeStamp>
</Item>
</Items>
</ReportingData>
<ReportingID>19975596</ReportingID>
</Response>
</TransactionQueryResponse>
Let's work together to reach your goals. Contact us at the links below and a representative will be in touch.
We are here to help you and your business. Contact us using the button below.
Learn more©2020 FIS. Advancing the way the world pays, banks and invests™