Skip to main content

In-Person Payments

ReceiptData.hpp

Last updated: 25-Jul-2024

namespace verifone_sdk

struct ReceiptData

  • Fields containing data regarding the completed transaction. Individual fields get automatically populated if not specified and if the data is present somewhere else in the containing message. All ReceiptData fields are currently optional and values may be absent.

Public Functions

inline ReceiptData(std::optional<std::string> receiptCopy_, std::optional<std::string> offlineDeletedReceipt_, std::optional<std::string> offlineDeletedTimeStamp_, std::optional<std::string> transactionType_, std::optional<std::string> merchantName_, std::optional<std::string> merchantAddress1_, std::optional<std::string> merchantAddress2_, std::optional<std::string> merchantAddress3_, std::optional<std::string> merchantAddress4_, std::optional<std::string> merchantPhoneNumber_, std::optional<std::string> merchantRegNumber_, std::optional<std::string> transactionTimeStamp_, std::optional<std::string> currency_, std::optional<std::string> transactionAmount_, std::optional<std::string> taxAmount_, std::optional<std::string> cashbackAmount_, std::optional<std::string> surchargeAmount_, std::optional<std::string> tipsAmount_, std::optional<std::string> totalAmount_, std::optional<std::string> apmName_, std::optional<std::string> cvmType_, std::optional<std::string> cardBrand_, std::optional<std::string> psn_, std::optional<std::string> paymentInstrument_, std::optional<std::string> maskedPAN_, std::optional<std::string> poiSerialNumber_, std::optional<std::string> terminalID_, std::optional<std::string> acquirerName_, std::optional<std::string> acquirerID_, std::optional<std::string> merchantID_, std::optional<std::string> atc_, std::optional<std::string> aed_, std::optional<std::string> aid_, std::optional<std::string> authSource_, std::optional<std::string> acType_, std::optional<std::string> acValue_, std::optional<std::string> arc_, std::optional<std::string> authCode_, std::optional<std::string> refNumber_, std::optional<std::string> tvr_, std::optional<std::string> tsi_, std::optional<std::string> transactionResult_, std::optional<std::string> transactionResultCode_, std::optional<std::string> rejectionReason_, std::optional<std::string> expiryDate_, std::optional<std::string> encryptedPan_, std::optional<std::string> encryptedKsn_)

Public Members

std::optional<std::string> receiptCopy

  • The current receipt type.

std::optional<std::string> offlineDeletedReceipt

  • True if deleted receipt in offline transaction.

std::optional<std::string> offlineDeletedTimeStamp

  • Time of deletion of offline transaction.

std::optional<std::string> transactionType

  • The type of the completed transaction.

std::optional<std::string> merchantName

  • The name of the merchant involved in the transaction.

std::optional<std::string> merchantAddress1

  • The first address of the merchant involved in the transaction.

std::optional<std::string> merchantAddress2

  • The second address of the merchant involved in the transaction.

std::optional<std::string> merchantAddress3

  • The third address of the merchant involved in the transaction.

std::optional<std::string> merchantAddress4

  • The fourth address of the merchant involved in the transaction.

std::optional<std::string> merchantPhoneNumber

  • The phone number of the merchant involved in the transaction.

std::optional<std::string> merchantRegNumber

  • The registration number of the merchant involved in the transaction.

std::optional<std::string> transactionTimeStamp

  • The time stamp of the transaction completion.

std::optional<std::string> currency

  • The currency used for this transaction.

std::optional<std::string> transactionAmount

  • The grand total amount of the transaction(subtotal + tax(es) + gratuity + any other amounts).

std::optional<std::string> taxAmount

  • Tax amount of the transaction.

std::optional<std::string> cashbackAmount

  • The amount of cashback of the transaction (GAAP-standard BigDecimal).

std::optional<std::string> surchargeAmount

  • Tax surcharge amount of the transaction.

std::optional<std::string> tipsAmount

  • The amount that is being paid as a tip or gratuity.

std::optional<std::string> totalAmount

  • The grand total amount of the transaction(subtotal + tax(es) + gratuity + any other amounts).

std::optional<std::string> apmName

  • The name of the alternative payment method.

std::optional<std::string> cvmType

  • The ways by which the transaction is authorized.

std::optional<std::string> cardBrand

  • The brand for the card.

std::optional<std::string> psn

  • The PAN Sequence Number. Used to differentiate multiple cards issued with the same PAN.

std::optional<std::string> paymentInstrument

  • The method/device through which the payment will be made.

std::optional<std::string> maskedPAN

  • The masked PAN when the card status is PCI_CARD or the clear PAN if the card status is NON_PCI_CARD.

std::optional<std::string> poiSerialNumber

  • PoiIdentification number.

std::optional<std::string> terminalID

  • The Terminal identifier.

std::optional<std::string> acquirerName

  • The name of the acquirer used for the transaction.

std::optional<std::string> acquirerID

  • The ID of the acquirer used for the transaction.

std::optional<std::string> merchantID

  • The Merchant identifier.

std::optional<std::string> atc

  • The 9F36 emv tag value as a string. Present only with EMV cards.

std::optional<std::string> aed

  • The 5F25 emv tag value as a string. Present only with EMV cards.

std::optional<std::string> aid

  • The 9F06 emv tag value as a string. Present only with EMV cards.

std::optional<std::string> authSource

  • True if the payment was authorized online with the host, or false if this was authorized offline.

std::optional<std::string> acType

  • The 9F27 emv tag value as a string. Present only with EMV cards.

std::optional<std::string> acValue

  • The 9F26 emv tag value as a string. Present only with EMV cards.

std::optional<std::string> arc

  • The 8A emv tag value as a string. Present only with EMV cards.

std::optional<std::string> authCode

  • The payment Authorization Code, usually provided by the payment processing service or acquirer. May be added during the transaction, but once set it should not be changed.

std::optional<std::string> refNumber

  • The Retrieval Reference Number from the payment/reversal response.

std::optional<std::string> tvr

  • The 95 emv tag value as a string. Present only with EMV cards.

std::optional<std::string> tsi

  • The 9B emv tag value as a string. Present only with EMV cards.

std::optional<std::string> transactionResult

  • Result of transaction authorization. This is provided by the payment application or payment service provider.

std::optional<std::string> transactionResultCode

  • The authorization code from the host payment if there is a gateway or other host between the terminal and the acquirer.

std::optional<std::string> rejectionReason

  • The descriptive text accompanying the authorization code from payment processor.

std::optional<std::string> expiryDate

  • The card expiry when specifically requested.

std::optional<std::string> encryptedPan

  • The encrypted Primary Account Number.

std::optional<std::string> encryptedKsn

  • The encrypted Key serial Number.

Need help?

Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.

Not yet a Verifone customer?

We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.

Verifone logo