Inherits from LUAPIModel : NSObject
Declared in LUPaymentToken.h
LUPaymentToken.m

Overview

LUPaymentToken is a payment token used to represent a user when they make a transaction. The payment token’s data is presented in a QR code, which is scanned when the user pays. Each payment token is scoped to the app which is requesting it.

A payment token may optionally have a message associated with it, which should be shown to the user. If the payment token has a message, it might also have an action, which directs the user to a particular screen in the app. See LUConstants.h for a list of possible actions.

Tasks

Properties

action

An optional action associated with this token. If a payment token has an action, it will have a message as well.

@property (nonatomic, copy, readonly) NSString *action

Discussion

An optional action associated with this token. If a payment token has an action, it will have a message as well.

Declared In

LUPaymentToken.h

data

This payment token’s data. Use the LUQRCodeGenerator class to generate QR codes from this data which include the user’s tip selection.

@property (nonatomic, copy, readonly) NSString *data

Discussion

This payment token’s data. Use the LUQRCodeGenerator class to generate QR codes from this data which include the user’s tip selection.

Declared In

LUPaymentToken.h

message

An optional message associated with this token. The message should be displayed to the user along with the payment token. A token with a message may have an action as well, but not always.

@property (nonatomic, copy, readonly) NSString *message

Discussion

An optional message associated with this token. The message should be displayed to the user along with the payment token. A token with a message may have an action as well, but not always.

Declared In

LUPaymentToken.h

paymentTokenID

The unique identifier for this payment token.

@property (nonatomic, copy, readonly) NSNumber *paymentTokenID

Discussion

The unique identifier for this payment token.

Declared In

LUPaymentToken.h