StripeTerminal class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onNativeLogs
→ Stream<
StripeLog> -
Gives you the native logs of this plugin. If some features are not working for you,
you can listen to the native logs to understand whats going wrong.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearReaderDisplay(
) → Future< void> - Clears connected reader's displays
-
collectPaymentMethod(
String clientSecret, {CollectConfiguration? collectConfiguration = const CollectConfiguration(skipTipping: true)}) → Future< StripePaymentIntent> - Starts reading payment method based on payment intent.
-
connectBluetoothReader(
String readerSerialNumber, {String? locationId}) → Future< bool> - Connects to a bluetooth reader, only works if you have scanned devices within this session.
-
connectionStatus(
) → Future< ConnectionStatus> - Checks the connection status of the SDK
-
connectToInternetReader(
String readerSerialNumber, {bool failIfInUse = false}) → Future< bool> - Connects to a internet reader, only works if you have scanned devices within this session.
-
connectToReader(
String readerSerialNumber, {String? locationId}) → Future< bool> - Connects to a bluetooth reader, only works if you have scanned devices within this session.
-
disconnectFromReader(
) → Future< bool> - Disconnects from a reader, only works if you are connected to a device
-
discoverReaders(
DiscoverConfig config) → Stream< List< StripeReader> > - Starts scanning readers in the vicinity. This will return a list of readers.
-
fetchConnectedReader(
) → Future< StripeReader?> -
Fetches the connected reader from the SDK.
null
if not connected -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readReusableCardDetail(
) → Future< StripePaymentMethod> - Extracts payment method from the reader
-
setReaderDisplay(
ReaderDisplay readerDisplay) → Future< void> - Displays the content to the connected reader's display
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getInstance(
{required Future< String> fetchToken()}) → Future<StripeTerminal> - Initializes the terminal SDK