5.4.0 2026-03-30
New
- Preview: Terminal Donations - Added support to skip donations flow per transaction by adding a
skipDonationparameter to theSCPCollectPaymentIntentConfigurationmodel.- To request access to this private preview, please contact Stripe Support.
- Preview: Multi Capture - Added
requestMulticapturetoSCPCardPresentParametersfor requesting multicapture support when creating card-present PaymentIntents.- To request access to this feature, please contact Stripe Support.
- Preview: Reauthorizations - Added support to authorize a
PaymentIntentagain after its capture window has lapsed.- Added
requestReauthorizationtoSCPCardPresentParametersfor requesting reauthorization support when creating card-present PaymentIntents. - Added
reauthorizationStatusandreauthorizeBeforeresponse fields toSCPCardPresentDetails. - Added
SCPPaymentIntentStatusRequiresReauthorizationtoSCPPaymentIntentStatus. - To request access to this feature, please contact Stripe Support.
- Added
- Added the
captureBeforeresponse field toSCPCardPresentDetails.- Previously only available via the server-side API.
Updates
SCPApiErrornow exposesrequestLogUrl,adviceCode,networkAdviceCode, andnetworkDeclineCodeto provide more details about Stripe API errors.SCPSetupIntent.lastSetupErrorandSCPSetupAttempt.setupErrornow exposerequestLogUrl,adviceCode,networkAdviceCode, andnetworkDeclineCodeviaSCPApiError.SCPConfirmPaymentIntentError,SCPConfirmSetupIntentError, andSCPConfirmRefundErrornow expose anapiErrorproperty, which is also available viauserInfo[SCPErrorKeyStripeAPIError].
Fixes
- Fixes #377: Fixed a crash caused by delegate callbacks and completion handlers being dispatched on background threads when using Swift concurrency.
- Fixed a crash that could occur during reader discovery.