Note that if you are using CocoaPods, the version format has changed slightly in this release. In your Podfile:
pod 'StripeTerminal', '1.0.0-b3'
Tap to discover
- We've added a new discovery method, "Bluetooth Proximity", which you can use to discover a reader by holding it next to the iOS device. We think this will greatly improve the reader discovery experience – please try it out! If you have any feedback on the feature, please file an issue.
- The initializer for
DiscoveryConfiguration
now requires specifying adeviceType
.
Other changes
- The
batteryLevel
property onReader
is now an optionalNSNumber
(boxing a float from [0.0, 1.0], as before). (h/t @jasonzurita) ReadSourceParameters
now has an optionalmetadata
property, which you can use to attach key-value pairs to the source. (h/t @jasonzurita)- We've fixed a bug where
collectPaymentMethod
could not be canceled if a card from a previous payment was left in the reader. (h/t @sgruby-reformation) ConfirmError
now has an optionaldeclineCode
property. If the payment was declined, this property contains thedecline_code
from the Stripe API. (h/t @sgruby-reformation)terminal.cancel
has been renamed toterminal.cancelPaymentIntent
in Swift, for claritydidReport:info:
has been renamed todidReportReaderEvent:info:
in Swift, for clarity- Several error codes have been renamed:
ReaderError
has been renamedUnknownReaderError
SDKError
has been renamedUnexpectedSdkError
NetworkError
has been renamedUnknownNetworkError