LoyaltyListener

public interface LoyaltyListener

Interface implemented on the customer facing side.

This extends an interface which adds: Interface implemented on the customer facing side to:

  • Via onMessage(), receive messages from the merchant facing side, or
  • Via sendMessage(), send messages back to the merchant facing side

Since

4.1.0

Functions

Link copied to clipboard
public abstract void onLoyaltyDataLoaded(List<LoyaltyDataConfig> configs, CustomerInfo customerInfo)
When the implementing class connects, it will receive the current list of LoyaltyDataConfigs and current customerInfo.
Link copied to clipboard
public abstract void onLoyaltyServiceStateChanged(String type, String state)
Notified when the state of a loyalty service changes.
Link copied to clipboard
public abstract void onMessage(String payload)
Message sent from the merchant facing side.
Link copied to clipboard
public abstract void sendMessage(String payload)
Sends a message back to the merchant facing side.