3.7.0 2024-06-24
- Built with Xcode 15.2, Swift version 5.9.
- Beta: Surcharging is now available in private beta.
- added a
surchargeNotice
parameter toSCPCollectConfiguration
to display a surcharge notice on the payment collection screen. - added a
SCPSurcharge
field to theSCPCardPresentParameters
object. - added a
SCPConfirmConfiguration
class to allow per-transaction overrides forconfirmPaymentIntent
. - added an
amountSurcharge
parameter toSCPConfirmConfiguration
to surcharge when confirming a payment. - If you are interested in joining this beta, please email stripe-terminal-betas@stripe.com.
- added a
- Beta: Added a
collectData
method to collect eligible magstripe data, such as gift cards.- If you are interested in joining this beta, please email stripe-terminal-betas@stripe.com.
- Update: Added
SCPSimulateReaderUpdateLowBatterySucceedConnect
to simulate an error scenario where a required update fails on a mobile reader due to low battery, but the SDK still successfully connects to the reader.- see Simulated reader updates for details.
- Update: if a mobile reader receives the
SCPErrorReaderMissingEncryptionKeys
error during payment collection, the SDK will disconnect from the reader. Note that auto reconnection will not work in this scenario. The error will automatically recover once the reader is reconnected. - Fix: Fixed a crash that occurred when canceling
collectPaymentMethod
afterconfirmPaymentIntent
had already been called on thePaymentIntent
.