Version 7.2.0
- [ADDED]
SumUpPayment.Builder.tipPercentages()to configure the tip options shown on the card reader when used together withtipOnCardReader(). Accepts 1 to 3 unique whole-number percentages between 1 and 99; defaults to 10%, 15% and 20% if not set. Please refer to the documentation for more information.
val payment = SumUpPayment.builder()
.total(BigDecimal("12.50"))
.currency(SumUpPayment.Currency.EUR)
.tipOnCardReader()
.tipPercentages(listOf(5, 10, 15))
.build()- [CHANGED] Breaking change:
OfflineSessionStatehas a new structure.- Session details such as
remainingTimeMillisandapprovedTransactionCountmoved fromActiveSessioninto the new sessionData property, e.g.session.getRemainingTimeMillis()becomessession.getSessionData().getRemainingTimeMillis(). - New
PendingUploadstate: the session has ended but still has transactions to upload. CallSumUpAPI.uploadOfflineTransactions(...)to upload them. Kotlin when expressions overOfflineSessionStatemust now handle this state.
- Session details such as
when (state) {
is OfflineSessionState.NoActiveSession -> { }
is OfflineSessionState.ActiveSession -> state.sessionData.remainingTimeMillis
is OfflineSessionState.PendingUpload -> SumUpAPI.uploadOfflineTransactions(listener)
}- [FIXED] The SDK no longer disables code obfuscation in integrating apps.(#276)
- [FIXED] The app bar and navigation bar overlapped SDK screen content when targeting Android SDK 36 in Tablets. SDK screens now support edge-to-edge display. (#281)
- [FIXED] A crash when calling
SumUpState.init()more than once. Repeated calls are now ignored. (#268) - [FIXED]
SumUpAPI.isLoggedIn() returned true afterSumUpAPI.logout()when logged in with an access token. (#284) - [FIXED] A crash during consecutive offline transactions with the success screen skipped.