@Immutable @LevelUpApi(contract=INTERNAL) public final class PaymentTokenV2 extends LevelUpCode
Class to encompass the logic to encode V2 payment tokens combined with
PaymentPreferencesV3 data.
Looks like (base 36 encoded):
LU0201234671234567890123030002LUmData| Modifier | Constructor and Description |
|---|---|
protected |
PaymentTokenV2(String qrData)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getColor(Resources resources)
Parses a V2 version of the code to try to get the user's selected color.
|
decodeColor, encodeLevelUpCode, encodeLevelUpCode, parseColorprotected PaymentTokenV2(String qrData)
qrData - the QR code data scanned.protected int getColor(Resources resources)
getColor in class LevelUpCoderesources - the resources to use to get color resources withPaymentPreferences.COLOR_UNKNOWN if not.