getLoyaltyId

Return

The loyalty id that has been registered, if any. The loyalty id is only set if a loyalty card has been registered during the transaction. If no loyalty has been registered, then this returns an empty string.

If loyalty has been registered, then this returns a string that is divided into two parts: a name and an id. The parts are separated by an equal sign. The name is the name of the loyalty card/application. The id is the specific loyalty account from the card.

An example could be "S-BONUS=123456789123456"

Note that an EMV based loyalty application like S-BONUS can only appear hear if it has been activated for the transaction in TransactionRequest.setLoyaltyApplications.

Since

Version 1.7. Requires Westpay Payment Application 2.0.11, or later.

See also

VerifyCardData.getLoyaltyId