Skip to main content

In-Person Payments

Last updated: 26-Jun-2024

namespace payment_sdk

class ScannerDataEvent

  • Scanner Data Event Handler

Public Functions

String getMessage()

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

String getType()

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

int getStatus()

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

String getDataAsString()

  • Get scanner captured data returned as a string.

byte[] getDataAsBinary ()

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

ScannerBarcodeFormatEnum getFormat()

  • Get scannerFormat returned from successful scan.

Public Static Attributes

static final String 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