Skip to main content

In-Person Payments

LoyaltyData.hpp

Last updated: 19-Jul-2024

namespace verifone_sdk

class LoyaltyData

  • Allows to convert various offers and promotions to format that can be applied to payment

Public Functions

inline virtual ~LoyaltyData()
virtual LoyaltyType getType() const = 0

  • Return type of Loyalty used to instantiate this object

virtual std::shared_ptr<Promotion> getAsPromotion() const = 0

  • Access Promotion values, will return empty optional if LoyaltyType does not match APR_PROMOTION

Public Static Functions

static std::shared_ptr<LoyaltyData> createFromPromotion(const std::shared_ptr<Promotion> &promotion)

  • Create LoyaltyData from Promotion

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