Android SDK(Opens in a new tab) 7.2.0 has been released(Opens in a new tab).
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.
when (state) { is OfflineSessionState.NoActiveSession -> { } is OfflineSessionState.ActiveSession -> state.sessionData.remainingTimeMillis is OfflineSessionState.PendingUpload -> SumUpAPI.uploadOfflineTransactions(listener) } - Session details such as
FIXED:
- The SDK no longer disables code obfuscation in integrating apps.
- 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.
- A crash when calling
SumUpState.init()more than once. Repeated calls are now ignored. SumUpAPI.isLoggedIn() returned true afterSumUpAPI.logout()when logged in with an access token.- A crash during consecutive offline transactions with the success screen skipped.