TapToPayUpdateRequirement

sealed interface TapToPayUpdateRequirement

An upcoming update requirement for Tap to Pay on Android.

Tap to Pay on Android enforces time-dependent SDK, Android OS, and Android security-patch requirements so that devices remain suitable for accepting payments. When one of these versions is approaching (or has passed) the point at which it can no longer be attested, the SDK reports a TapToPayUpdateRequirement describing the earliest version the device should upgrade to and the instant at which enforcement begins.

This is an advisory signal: it does not install an update, change the reader connection state, or block payment acceptance. Once requiredAtMs passes, the existing attestation and connection error flow remains the source of truth for an enforced requirement.

Use of this SDK is subject to the Stripe Terminal Terms: https://stripe.com/terminal/legal

Inheritors

Types

Link copied to clipboard
data class OperatingSystem(val apiLevel: Int, val requiredAtMs: Long) : TapToPayUpdateRequirement

The device's Android OS version must be updated to avoid attestation failures.

Link copied to clipboard
data class SecurityPatch(val version: String, val requiredAtMs: Long) : TapToPayUpdateRequirement

The device's Android security patch must be updated to avoid attestation failures.

Link copied to clipboard
data class TerminalSdk(val version: String, val requiredAtMs: Long) : TapToPayUpdateRequirement

The Terminal SDK must be updated to avoid attestation failures.

Properties

Link copied to clipboard
abstract val requiredAtMs: Long

Unix epoch milliseconds representing the UTC instant at which enforcement of this requirement begins. Render this in the locale and time zone appropriate for the device operator.