Skip to main content

In-Person Payments

ConfigurationEventResponse.hpp

Last updated: 16-Jul-2024

namespace verifone_sdk

class ConfigurationEventResponse

  • Contains the response for an ConfigurationEventResponse

Public Functions

inline virtual ~ConfigurationEventResponse()
virtual std::string getDeviceId() const = 0

  • Get the DeviceId

virtual void setDeviceId(const std::string &deviceId) = 0

  • Set the DeviceId when a request came from the terminal from ConfigurationRequestEvent.

virtual int32_t getStatus() const = 0

  • The status to mark it as failed for some specific reason. Common failed statuses include StatusCode::CANCELLED, StatusCode::COMMAND_TIMED_OUT, and StatusCode::UNSUPPORTED_COMMAND.

virtual StatusInformation getStatusInformation() const = 0

  • Get the detailed Status Information StatusInformation.

virtual void setStatus(int32_t status) = 0

  • See getStatus(). Set this status when responding to an input event request if the user cancels or if there is some error.

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

  • The message in case of a failure. Primarily used for logging, though it can be displayed to the cashier to allow them to better respond to the specific error scenario.

virtual void setMessage(const std::optional<std::string> &message) = 0

  • See getMessage(). Set this value when responding to an input event request and there is some error, otherwise leave it empty.

Public Static Functions

static std::shared_ptr<CommerceResponse> asCommerceResponse(const std::shared_ptr<ConfigurationEventResponse> &configurationEventResponse)

  • Generate CommerceResponse from the provided response

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