Releases: stripe/stripe-terminal-ios
Releases · stripe/stripe-terminal-ios
v2.23.1
- Built with Xcode 14.3, Swift version 5.8.
- Fixes a regression in 2.21.0 where the SDK could get stuck running
discoverReaders
ifconnectBluetoothReader
failed and the discovery cancelable was canceled in the connect completion block.
v2.23.0
- Built with Xcode 14.3, Swift version 5.8.
- Support for CVM PIN transactions when using Tap to Pay on iPhone. See Tap to Pay on iPhone docs for specifics on supported countries and payment methods.
- Fixes a bug where connecting to an internet reader after being connected to a Bluetooth reader could error with "ConnectionToken has already been redeemed".
- Provides additional debugging information when an Apple Built-In reader fails to prepare. See the new
SCPErrorKeyPrepareFailedReason
error key. - Fixes a regression where
SCPErrorUnexpectedSdkError
would be returned when connecting to a reader withoutdiscoverReaders
running. Now returns a specific error,SCPErrorMustBeDiscoveringToConnect
.
v2.22.0
- Built with Xcode 14.3, Swift version 5.8.
- Tap to Pay on iPhone now returns card read results immediately by default on iOS 16.4+ to reduce transaction time.
- Fixes #229:
connectedReader
andconnectionStatus
is now correctly set when thedisconnectReader
completion block is run when using the simulated Bluetooth reader. - Fixes #232:
didReportBatteryLevel
now correctly reportsbatteryLevel
as a float between 0 and 1 as documented.
v2.21.0
- Built with Xcode 14.1, Swift version 5.7.1.
- Fixes a bug where
collectPaymentMethod
could have failed with "Transaction is cancelled by the user" shortly after callingcollectPaymentMethod
. - Reduces the latency of subsequent attempts to connect to an Apple Built-In reader.
- Fixes a crash if the
discoverReaders
cancelable was canceled indidUpdateDiscoveredReaders
afterconnectReader
failed connecting to the reader. - Added a new simulated test card
.visaUsCommonDebit
SCPSimulatedCardType
. - Fixes a bug where
processPayment
could result in an error stating "This PaymentIntent could not be updated because it has a status of succeeded" on slow networks. - Fixes a crash if the reader disconnects during the
/confirm
API request as part ofprocessPayment
.
v2.20.2
- Fixes a regression in 2.20.0 where
retrieveSetupIntent
would fail with an API error stating "The provided key 'pss_test_*****************' does not have the required permissions for this endpoint"
v2.20.1
2.20.1 2023-05-16
- Fixes a latent bug where closing and reopening the app several times leads to increased CPU usage.
v2.20.0
- Fixes a possible crash if a Bluetooth reader disconnects while
connectBluetoothReader
is running. - Fixes a bug where a
PaymentIntent
created withcaptureMethod
set toautomatic
may, under poor network conditions, have astatus
ofrequires_capture
, when it should have had astatus
ofsucceeded
. - Added error
SCPErrorConnectionTokenProviderTimedOut
. Returned when theSCPConnectionTokenProvider
does not call the provided completion block within 60 seconds. - Throws an error when attempting to use the simulated
.eftposAuDebit
card with an unsupported PaymentIntent capture method. Use this card with the capture method set toSCPCaptureMethodAutomatic
orSCPCardPresentCaptureMethodManualPreferred
. - Added
SCPReaderDisplayMessageCardRemovedTooEarly
sent when a card is removed too early during a contact payment. - Fixes a bug where the SDK would fail
processPayment
withSCPErrorDeclinedByStripeAPI
if the WisePad 3 timed out in betweencollectPaymentMethod
andprocessPayment
. This will now error withSCPErrorCardReadTimedOut
. - Fixes a bug where
SCPReaderEventCardInserted
could be announced multiple times for a single card insert.
v2.19.1
- Fixes an issue where the SDK could get stuck in an "AlreadyConnectedToReader" state when using Tap to Pay on iPhone.
v2.19.0
- New: Cancel
PaymentIntent
andSetupIntent
via the SDK when connected to an internet reader by callingcancelPaymentIntent
orcancelSetupIntent
instead of using your backend.- Note: This feature requires version
2.11.0.24
or later to be installed on your internet reader.
- Note: This feature requires version
- Added
authorizationCode
toSCPReceiptDetails
. - Added support for simulating an on-reader tip amount to the
SCPSimulatorConfiguration
when collecting and processing a payment using a simulated reader. - Add two new simulated test cards:
.eftposAuVisaDebit
&.eftposAuDebitMastercard
toSCPSimulatedCardType
- Added
captureMethod
property toSCPPaymentIntent
.
v2.18.1
- Fixes an issue where the SDK may report a failure during
processPayment
when using a WisePad 3 and the reader times out waiting for the /confirm response from the Stripe API. The SDK will now will report success if the PaymentIntent status moved torequires_capture
orsucceeded
.