If you are using CocoaPods, update your Podfile:
pod 'StripeTerminal', '1.0.0'
Changes from 1.0.0-rc2
-
Adds
Reader.simulated
property, to tell whether a reader is simulated or not. -
The
Terminal.connectedReader
property will now benil
when the SDK calls yourTerminalDelegate.terminal(_:didReportUnexpectedReaderDisconnect:)
method. In previous releases, it contained the previously connectedReader
object. The previously connected reader is still available, as a parameter of this method.
- When a
SCPErrorSessionExpired
has been thrown (seeSCPErrors.h
for more details on when this is thrown) we now callTerminalDelegate.didReportUnexpectedReaderDisconnect
after a successful auto-disconnect. Note there is a small chance the disconnect fails and this callback will not be called. You can checkTerminal.connectionStatus
in your completion block that received theSCPErrorSessionExpired
to see if your reader is still connected.