Skip to main content

In-Person Payments

ScannerDataEvent.hpp

Last updated: 25-Jul-2024

namespace verifone_sdk

class ScannerDataEvent

  • Scanner Data Event Handler

Public Functions

inline virtual ~ScannerDataEvent()
virtual std::optional<std::string> getMessage() const = 0

  • A user-readable message. This message may not be localized, in which case the type field should be used for determining a localized message.

virtual std::optional<std::string> getType() const = 0

  • The type of status. This will generally be SUCCESS for a status of 0, and contain a different type for other errors.

virtual int32_t getStatus() const = 0

  • Get the status for this particular event. A status of 0 means success, any other status is a failure.

virtual std::string getDataAsString() const = 0

  • Get scanner captured data returned as a string.

virtual std::vector<uint8_t> getDataAsBinary() const = 0

  • Get scanner captured data returned as an array of bytes.

virtual ScannerBarcodeFormatEnum getFormat() const = 0

  • Get scannerFormat returned from successful scan.

Public Static Attributes

static std::string const SCANNER_DATA_RECEIVED

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