Skip to main content

In-Person Payments

LoyaltyRequest.java

Last updated: 18-Jun-2024

namespace triggers

LoyaltyRequest : public com.verifone.commerce.triggers.CommerceTrigger

  • A request from the terminal Payment Application, allowing applications to present/add loyalty-driven offers. When requested, this app may present the interface to retrieve things like a phone number, email address, code, or other type of customer identifier.

Public Functions

inline BigDecimal getAmount()

  • Get the transaction amount.
   See also: Transaction::setAmount(BigDecimal)

inline String getCurrency()

  • Get the currency used for the transaction.
   See also: Transaction::setCurrency(String)

inline CommerceTrigger generateResponse()

  • Creates a LoyaltyResponse object to be sent in response to the request.

inline String getName()

Public Static Attributes

static final String NAME

  • The system name of the message.

Protected Functions

inline void populateMessageFromJson (@NonNull JSONObject jsonObject)

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