本文へ移動
rdlabo.dev

API

@capacitor-community/stripe-terminal v8.2.1 のリファレンスです。接続方式と Tap to Pay API の対応状況は設定を参照してください。

メソッド

method initialize(...)

Initializes the Stripe Terminal SDK and its connection-token provider.
Call this once before discovering readers.

When tokenProviderEndpoint is provided, the plugin sends a POST request
and expects { secret: string }. When it is omitted, handle
RequestedConnectionToken and call setConnectionToken() instead.

initialize(options: StripeTerminalInitializationOptions) => Promise<void>

method discoverReaders(...)

Discovers readers using the requested transport. The returned readers are
snapshots; listen for DiscoveredReaders when continuous discovery can
produce additional results.

discoverReaders(options: DiscoverReadersOptions) => Promise<{ readers: ReaderInterface[]; }>

method setConnectionToken(...)

Supplies a connection-token secret after RequestedConnectionToken is
emitted. Create each token on your server and use it only once.

setConnectionToken(options: SetConnectionTokenOptions) => Promise<void>

method setSimulatorConfiguration(...)

Configures the simulated reader used in test mode. Call before the
operation whose behavior you want to simulate.

Stripe docs reference

setSimulatorConfiguration(options: SimulatorConfigurationOptions) => Promise<void>

method connectReader(...)

Connects to a reader returned by discoverReaders().

connectReader(options: ConnectReaderOptions) => Promise<void>

method getConnectedReader()

Returns the currently connected reader, or null when disconnected.

getConnectedReader() => Promise<{ reader: ReaderInterface | null; }>

method disconnectReader()

Disconnects the active reader. Resolves immediately if none is connected.

disconnectReader() => Promise<void>

method cancelDiscoverReaders()

Cancels the active reader-discovery operation.

cancelDiscoverReaders() => Promise<void>

method collectPaymentMethod(...)

Collects a payment method for a server-created PaymentIntent. Confirm the
collected intent with confirmPaymentIntent().

collectPaymentMethod(options: CollectPaymentMethodOptions) => Promise<void>

method cancelCollectPaymentMethod()

Cancels an in-progress collectPaymentMethod() call.

cancelCollectPaymentMethod() => Promise<void>

method confirmPaymentIntent()

Confirms the PaymentIntent most recently collected by the reader.

confirmPaymentIntent() => Promise<void>

method installAvailableUpdate()

Installs the software update reported by ReportAvailableUpdate.

installAvailableUpdate() => Promise<void>

method cancelInstallUpdate()

Cancels an in-progress optional reader software update.

cancelInstallUpdate() => Promise<void>

method setReaderDisplay(...)

Displays cart details on a reader with a customer-facing display.

setReaderDisplay(options: Cart) => Promise<void>

method clearReaderDisplay()

Clears cart details from the reader's customer-facing display.

clearReaderDisplay() => Promise<void>

method rebootReader()

Reboots the connected reader. Supported reader types are platform dependent.

rebootReader() => Promise<void>

method cancelReaderReconnection()

Cancels an automatic reader reconnection attempt.

cancelReaderReconnection() => Promise<void>

method setTapToPayUxConfiguration(...)

Configure the Tap to Pay UX appearance (Android only).
Call this after initialize() but before connectReader().
Has no effect on iOS or web platforms.

setTapToPayUxConfiguration(options: TapToPayUxConfiguration) => Promise<void>

method isTapToPayAccountLinked(...)

Check whether the merchant has accepted Apple's Tap to Pay on iPhone
Terms and Conditions.

iOS only, and requires iOS 16.4 or later. initialize() must have been
called first because the SDK needs a connection token provider, but no
reader connection is required and the call does not activate the device.

The answer is read from Apple on every call. Apple's Tap to Pay on iPhone
requirements state that acceptance state must be retrieved from Apple
rather than from a local variable, so do not cache the result.

Stripe docs reference

isTapToPayAccountLinked(options?: IsTapToPayAccountLinkedOptions | undefined) => Promise<{ isLinked: boolean; }>

method addListener(TerminalEventsEnum.Loaded, ...)

Emitted after the Terminal SDK has initialized.

addListener(eventName: TerminalEventsEnum.Loaded, listenerFunc: () => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.RequestedConnectionToken, ...)

Emitted when the SDK needs a connection token and no token endpoint was
configured. Respond by calling setConnectionToken().

addListener(eventName: TerminalEventsEnum.RequestedConnectionToken, listenerFunc: () => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.DiscoveredReaders, ...)

Emitted whenever discovery produces an updated reader list. During iOS
Bluetooth discovery this event can be emitted multiple times.

https://docs.stripe.com/terminal/payments/connect-reader?terminal-sdk-platform=ios&reader-type=bluetoothhttps://docs.stripe.com/terminal/payments/connect-reader?terminal-sdk-platform=ios&reader-type=bluetooth

addListener(eventName: TerminalEventsEnum.DiscoveredReaders, listenerFunc: ({ readers }: { readers: ReaderInterface[]; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ConnectedReader, ...)

Emitted after a reader connects successfully.

addListener(eventName: TerminalEventsEnum.ConnectedReader, listenerFunc: () => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.DisconnectedReader, ...)

Emitted when the reader is disconnected, either in response to disconnectReader()
or some connection error.

For all reader types, this is emitted in response to disconnectReader()
without a reason property.

For Bluetooth and USB readers, this is emitted with a reason property when the reader disconnects.

Note: For Bluetooth and USB readers, when you call disconnectReader(), this event
will be emitted twice: one without a reason in acknowledgement of your call, and again with a reason when the reader
finishes disconnecting.

addListener(eventName: TerminalEventsEnum.DisconnectedReader, listenerFunc: ({ reason }: { reason?: DisconnectReason | undefined; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ConnectionStatusChange, ...)

Emitted when the Terminal's connection status changed.

Note: You should not use this method to detect when a reader unexpectedly disconnects from your app,
as it cannot be used to accurately distinguish between expected and unexpected disconnect events.

To detect unexpected disconnects (e.g. to automatically notify your user), you should instead use
the UnexpectedReaderDisconnect event.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.ConnectionStatusChange, listenerFunc: ({ status }: { status: ConnectionStatus; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.UnexpectedReaderDisconnect, ...)

The Terminal disconnected unexpectedly from the reader.

In your implementation of this method, you may want to notify your user that the reader disconnected.
You may also call discoverReaders() to begin scanning for readers, and attempt
to automatically reconnect to the disconnected reader. Be sure to either set a timeout or make it
possible to cancel calls to discoverReaders()

When connected to a Bluetooth or USB reader, you can get more information about the disconnect by
implementing the DisconnectedReader event.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.UnexpectedReaderDisconnect, listenerFunc: ({ reader }: { reader: ReaderInterface; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ConfirmedPaymentIntent, ...)

Emitted after confirmPaymentIntent() succeeds.

addListener(eventName: TerminalEventsEnum.ConfirmedPaymentIntent, listenerFunc: () => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.CollectedPaymentIntent, ...)

Emitted after collectPaymentMethod() succeeds.

addListener(eventName: TerminalEventsEnum.CollectedPaymentIntent, listenerFunc: () => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.Canceled, ...)

Emitted when cancelCollectPaymentMethod() is called and succeeds.
The Promise returned by cancelCollectPaymentMethod() will also be resolved.

addListener(eventName: TerminalEventsEnum.Canceled, listenerFunc: () => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.Failed, ...)

Emitted when either collectPaymentMethod() or confirmPaymentIntent()
fails. The Promise returned by the relevant call will also be rejected.

addListener(eventName: TerminalEventsEnum.Failed, listenerFunc: (info: { message: string; code?: string; declineCode?: string; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ReportAvailableUpdate, ...)

Emitted when a software update is available for the connected reader.

addListener(eventName: TerminalEventsEnum.ReportAvailableUpdate, listenerFunc: ({ update }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.StartInstallingUpdate, ...)

Only applicable to Bluetooth and USB readers.

Emitted when the connected reader begins installing a software update.
If a mandatory software update is available when a reader first connects, that update is
automatically installed. The update will be installed before ConnectedReader is emitted and
before the Promise returned by connectReader() resolves.
In this case, you will receive this sequence of events:

  1. StartInstallingUpdate
  2. ReaderSoftwareUpdateProgress (repeatedly)
  3. FinishInstallingUpdates
  4. ConnectedReader
  5. connectReader() Promise resolves

Your app should show UI to the user indicating that a software update is being installed
to explain why connecting is taking longer than usual.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.StartInstallingUpdate, listenerFunc: ({ update }: { update: ReaderSoftwareUpdateInterface; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ReaderSoftwareUpdateProgress, ...)

Only applicable to Bluetooth and USB readers.

Emitted periodically while reader software is updating to inform of the installation progress.
progress is a float between 0 and 1.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.ReaderSoftwareUpdateProgress, listenerFunc: ({ progress }: { progress: number; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.FinishInstallingUpdate, ...)

Only applicable to Bluetooth and USB readers.

Emitted when reader software installation finishes. The callback contains
either the installed update or an error.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.FinishInstallingUpdate, listenerFunc: (args: { update: ReaderSoftwareUpdateInterface; } | { error: string; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.BatteryLevel, ...)

Only applicable to Bluetooth and USB readers.

Emitted upon connection and every 10 minutes.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.BatteryLevel, listenerFunc: ({ level, charging, status }: { level: number; charging: boolean; status: BatteryStatus; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ReaderEvent, ...)

Only applicable to Bluetooth and USB readers.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.ReaderEvent, listenerFunc: ({ event }: { event: ReaderEvent; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.RequestDisplayMessage, ...)

Only applicable to Bluetooth and USB readers.

Emitted when the Terminal requests that a message be displayed in your app.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.RequestDisplayMessage, listenerFunc: ({ messageType, message }: { messageType: ReaderDisplayMessage; message: string; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.RequestReaderInput, ...)

Only applicable to Bluetooth and USB readers.

Emitted when the reader begins waiting for input. Your app should prompt the customer
to present a source using one of the given input options. If the reader emits a message,
the RequestDisplayMessage event will be emitted.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.RequestReaderInput, listenerFunc: ({ options, message }: { options: ReaderInputOption[]; message: string; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.PaymentStatusChange, ...)

Emitted when the Terminal SDK's payment collection status changes.

Stripe docs reference

addListener(eventName: TerminalEventsEnum.PaymentStatusChange, listenerFunc: ({ status }: { status: PaymentStatus; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ReaderReconnectStarted, ...)

Emitted when automatic reader reconnection begins.

addListener(eventName: TerminalEventsEnum.ReaderReconnectStarted, listenerFunc: ({ reader, reason }: { reader: ReaderInterface; reason: string; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ReaderReconnectSucceeded, ...)

Emitted when automatic reader reconnection succeeds.

addListener(eventName: TerminalEventsEnum.ReaderReconnectSucceeded, listenerFunc: ({ reader }: { reader: ReaderInterface; }) => void) => Promise<PluginListenerHandle>

method addListener(TerminalEventsEnum.ReaderReconnectFailed, ...)

Emitted when automatic reader reconnection fails.

addListener(eventName: TerminalEventsEnum.ReaderReconnectFailed, listenerFunc: ({ reader }: { reader: ReaderInterface; }) => void) => Promise<PluginListenerHandle>

addListener オーバーロードは個別のメソッドシグネチャです。下の TerminalEventsEnum 表はメンバー名と文字列値だけを示し、オーバーロードは繰り返しません。

DiscoveringReadersCancelDiscoveredReaders は列挙型に含まれ、ネイティブの探索処理から送出されますが、この一覧に型付きオーバーロードはありません。

インターフェース

interface DiscoverReadersOptions

Prop Type Description Since
type TerminalConnectTypes Discovery method and reader transport to use. 5.1.0
locationId string Stripe Terminal Location ID used to scope internet reader discovery and reader registration where required. 5.1.0
bluetoothScanWaitTime number Only applies to Bluetooth scan discovery (iOS only). During discovery, readers are reported via DiscoveryDelegate.didUpdateDiscoveredReaders. This timeout controls how long to wait before resolving the discoverReaders method with the current list. If this setting is not specified or is set to 0, the initial scan results will be returned. 7.2.0

interface TapToPayUxConfiguration

Configuration for the Tap to Pay UX (Android only).

Prop Type Description Since
colors TapToPayColorScheme Color scheme for the Tap to Pay screen. 8.1.0
darkMode TapToPayDarkMode Dark-mode setting for the Tap to Pay screen. 8.1.0
tapZone TapToPayTapZone Position of the tap indicator on screen. 8.1.0

interface TapToPayColorScheme

Color scheme for the Tap to Pay screen.

Prop Type Description Since
primary TapToPayColor Primary color for the tap-zone indicator. Use a hex string or default. 8.1.0
success TapToPayColor Success-state color. Use a hex string or default. 8.1.0
error TapToPayColor Error-state color. Use a hex string or default. 8.1.0

interface IsTapToPayAccountLinkedOptions

Options for isTapToPayAccountLinked.

Prop Type Description Since
onBehalfOf string Connected account ID, for Stripe Connect platforms. Omit to check the account that owns the API key. 8.2.0

interface PluginListenerHandle

Prop Type
remove () =&gt; Promise&lt;void&gt;

型エイリアス

interface ReaderInterface

Snapshot of a Stripe Terminal reader returned by discovery or connection.

Prop Type Description Since
serialNumber string Stable hardware serial number used as the reader's primary identifier. 6.2.0
label string Human-readable reader label. 6.2.0
batteryLevel number Reader battery level from 0 to 1. 6.2.0
batteryStatus BatteryStatus Current reader battery status. 6.2.0
simulated boolean Whether this is a simulated reader. 6.2.0
id number Platform-specific numeric reader identifier. 6.2.0
availableUpdate ReaderSoftwareUpdateInterface Available reader software update, when one has been reported. 6.2.0
locationId string Stripe Terminal Location ID assigned to the reader. 6.2.0
ipAddress string Reader IP address when available. 6.2.0
status NetworkStatus Current network status of the reader. 6.2.0
location LocationInterface Location details returned with the reader, when available. 6.2.0
locationStatus LocationStatus Current location-assignment status. 6.2.0
deviceType DeviceType Reader hardware type. 6.2.0
deviceSoftwareVersion string | null Installed reader software version, when reported by the SDK. 6.2.0
isCharging number iOS Only properties. These properties are not available on Android. 6.2.0
baseUrl string Android Only properties. These properties are not available on iOS. 6.2.0
bootloaderVersion string Android reader bootloader version. 6.2.0
configVersion string Android reader configuration version. 6.2.0
emvKeyProfileId string Android reader EMV key-profile identifier. 6.2.0
firmwareVersion string Android reader firmware version. 6.2.0
hardwareVersion string Android reader hardware version. 6.2.0
macKeyProfileId string Android reader MAC key-profile identifier. 6.2.0
pinKeyProfileId string Android reader PIN key-profile identifier. 6.2.0
trackKeyProfileId string Android reader track key-profile identifier. 6.2.0
settingsVersion string Android reader settings version. 6.2.0
pinKeysetId string Android reader PIN keyset identifier. 6.2.0

interface ReaderSoftwareUpdateInterface

Metadata for an available reader software update.

Prop Type Description Since
deviceSoftwareVersion string Software version offered by the update. 6.1.0
estimatedUpdateTime UpdateTimeEstimate Estimated duration of the update. 6.1.0
requiredAt number Unix timestamp after which the update becomes required. 6.1.0

interface LocationInterface

Stripe Terminal Location assigned to a reader.

Prop Type Description Since
id string Stripe Terminal Location ID. 6.2.0
displayName string Display name configured for the location. 6.2.0
address LocationAddress Postal address configured for the location. 6.2.0
ipAddress string Location IP address when provided by the SDK. 6.2.0

interface Cart

<a href="#cart">Cart</a> totals displayed on a reader's customer-facing screen.

Prop Type Description Since
currency string Three-letter ISO 4217 currency code. 6.2.0
tax number Tax amount in the currency's smallest unit. 6.2.0
total number Cart total in the currency's smallest unit. 6.2.0
lineItems CartLineItem[] Items displayed in the cart. 6.2.0

interface CartLineItem

Line item displayed on a reader's customer-facing screen.

Prop Type Description Since
displayName string Item name shown on the reader. 6.2.0
quantity number Number of units in the cart. 6.2.0
amount number Line-item amount in the currency's smallest unit. 6.2.0

type alias TapToPayColor

'default' | string

type alias TapToPayTapZone

{ type: 'default' } | { type: 'front'; xBias: number; yBias: number } | { type: 'behind'; xBias: number; yBias: number } | { type: 'above'; bias?: number } | { type: 'below'; bias?: number } | { type: 'left'; bias?: number } | { type: 'right'; bias?: number }

TerminalResultInterface は支払い結果イベント ConfirmedPaymentIntentCollectedPaymentIntentCanceledFailed の共用体です。confirmPaymentIntent() の戻り値ではなく、利便性のための別名です。

列挙型

enum TerminalConnectTypes

Member Value
Simulated 'simulated'
Internet 'internet'
Bluetooth 'bluetooth'
Usb 'usb'
TapToPay 'tap-to-pay'
HandOff 'hand-off'

enum TerminalEventsEnum

Member Value
Loaded 'terminalLoaded'
DiscoveredReaders 'terminalDiscoveredReaders'
DiscoveringReaders 'terminalDiscoveringReaders'
CancelDiscoveredReaders 'terminalCancelDiscoveredReaders'
ConnectedReader 'terminalConnectedReader'
DisconnectedReader 'terminalDisconnectedReader'
ConnectionStatusChange 'terminalConnectionStatusChange'
UnexpectedReaderDisconnect 'terminalUnexpectedReaderDisconnect'
ConfirmedPaymentIntent 'terminalConfirmedPaymentIntent'
CollectedPaymentIntent 'terminalCollectedPaymentIntent'
Canceled 'terminalCanceled'
Failed 'terminalFailed'
RequestedConnectionToken 'terminalRequestedConnectionToken'
ReportAvailableUpdate 'terminalReportAvailableUpdate'
StartInstallingUpdate 'terminalStartInstallingUpdate'
ReaderSoftwareUpdateProgress 'terminalReaderSoftwareUpdateProgress'
FinishInstallingUpdate 'terminalFinishInstallingUpdate'
BatteryLevel 'terminalBatteryLevel'
ReaderEvent 'terminalReaderEvent'
RequestDisplayMessage 'terminalRequestDisplayMessage'
RequestReaderInput 'terminalRequestReaderInput'
PaymentStatusChange 'terminalPaymentStatusChange'
ReaderReconnectStarted 'terminalReaderReconnectStarted'
ReaderReconnectSucceeded 'terminalReaderReconnectSucceeded'
ReaderReconnectFailed 'terminalReaderReconnectFailed'

enum SimulateReaderUpdate

Member Value
UpdateAvailable 'UPDATE_AVAILABLE'
None 'NONE'
Required 'REQUIRED'
Random 'RANDOM'
LowBattery 'LOW_BATTERY'
LowBatterySucceedConnect 'LOW_BATTERY_SUCCEED_CONNECT'

enum SimulatedCardType

Member Value
Visa 'VISA'
VisaDebit 'VISA_DEBIT'
Mastercard 'MASTERCARD'
MastercardDebit 'MASTERCARD_DEBIT'
MastercardPrepaid 'MASTERCARD_PREPAID'
Amex 'AMEX'
Amex2 'AMEX_2'
Discover 'DISCOVER'
Discover2 'DISCOVER_2'
DinersClub 'DINERS'
DinersClulb14Digits 'DINERS_14_DIGITS'
JCB 'JCB'
UnionPay 'UNION_PAY'
Interac 'INTERAC'
EftposAustraliaDebit 'EFTPOS_AU_DEBIT'
VisaUsCommonDebit 'VISA_US_COMMON_DEBIT'
ChargeDeclined 'CHARGE_DECLINED'
ChargeDeclinedInsufficientFunds 'CHARGE_DECLINED_INSUFFICIENT_FUNDS'
ChargeDeclinedLostCard 'CHARGE_DECLINED_LOST_CARD'
ChargeDeclinedStolenCard 'CHARGE_DECLINED_STOLEN_CARD'
ChargeDeclinedExpiredCard 'CHARGE_DECLINED_EXPIRED_CARD'
ChargeDeclinedProcessingError 'CHARGE_DECLINED_PROCESSING_ERROR'
EftposAustraliaVisaDebit 'EFTPOS_AU_VISA_DEBIT'
EftposAustraliaMastercardDebit 'EFTPOS_AU_DEBIT_MASTERCARD'
OfflinePinCVM 'OFFLINE_PIN_CVM'
OfflinePinSCARetry 'OFFLINE_PIN_SCA_RETRY'
OnlinePinCVM 'ONLINE_PIN_CVM'
OnlinePinSCARetry 'ONLINE_PIN_SCA_RETRY'

enum BatteryStatus

Member Value
Unknown 'UNKNOWN'
Critical 'CRITICAL'
Low 'LOW'
Nominal 'NOMINAL'

enum UpdateTimeEstimate

Member Value
LessThanOneMinute 'LESS_THAN_ONE_MINUTE'
OneToTwoMinutes 'ONE_TO_TWO_MINUTES'
TwoToFiveMinutes 'TWO_TO_FIVE_MINUTES'
FiveToFifteenMinutes 'FIVE_TO_FIFTEEN_MINUTES'

enum NetworkStatus

Member Value
Unknown 'UNKNOWN'
Online 'ONLINE'
Offline 'OFFLINE'

enum LocationStatus

Member Value
NotSet 'NOT_SET'
Set 'SET'
Unknown 'UNKNOWN'

enum DeviceType

Member Value
tapToPayDevice 'tapToPayDevice'
wisePad3s 'wisePad3s'
appleBuiltIn 'appleBuiltIn'
chipper1X 'chipper1X'
chipper2X 'chipper2X'
etna 'etna'
stripeM2 'stripeM2'
stripeS700 'stripeS700'
stripeS700DevKit 'stripeS700Devkit'
wiseCube 'wiseCube'
wisePad3 'wisePad3'
wisePosE 'wisePosE'
wisePosEDevKit 'wisePosEDevkit'
unknown 'unknown'

enum DisconnectReason

Member Value
Unknown 'UNKNOWN'
DisconnectRequested 'DISCONNECT_REQUESTED'
RebootRequested 'REBOOT_REQUESTED'
SecurityReboot 'SECURITY_REBOOT'
CriticallyLowBattery 'CRITICALLY_LOW_BATTERY'
PoweredOff 'POWERED_OFF'
BluetoothDisabled 'BLUETOOTH_DISABLED'

enum ConnectionStatus

Member Value
Unknown 'UNKNOWN'
NotConnected 'NOT_CONNECTED'
Connecting 'CONNECTING'
Connected 'CONNECTED'

enum ReaderEvent

Member Value
Unknown 'UNKNOWN'
CardInserted 'CARD_INSERTED'
CardRemoved 'CARD_REMOVED'

enum ReaderDisplayMessage

Member Value
CheckMobileDevice 'CHECK_MOBILE_DEVICE'
RetryCard 'RETRY_CARD'
InsertCard 'INSERT_CARD'
InsertOrSwipeCard 'INSERT_OR_SWIPE_CARD'
SwipeCard 'SWIPE_CARD'
RemoveCard 'REMOVE_CARD'
MultipleContactlessCardsDetected 'MULTIPLE_CONTACTLESS_CARDS_DETECTED'
TryAnotherReadMethod 'TRY_ANOTHER_READ_METHOD'
TryAnotherCard 'TRY_ANOTHER_CARD'
CardRemovedTooEarly 'CARD_REMOVED_TOO_EARLY'

enum ReaderInputOption

Member Value
None 'NONE'
Insert 'INSERT'
Swipe 'SWIPE'
Tap 'TAP'
ManualEntry 'MANUAL_ENTRY'

enum PaymentStatus

Member Value
Unknown 'UNKNOWN'
NotReady 'NOT_READY'
Ready 'READY'
WaitingForInput 'WAITING_FOR_INPUT'
Processing 'PROCESSING'

enum TapToPayDarkMode

Member Value
System 'SYSTEM'
Dark 'DARK'
Light 'LIGHT'

DeviceGroupDeviceType をリーダー画像グループへ対応付けます。画像選択用の参照専用列挙型であり、discoverReadersconnectReader には渡しません。