SumUp
Docs
Dashboard

Android SDK 7.2.0

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 with tipOnCardReader(). 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: OfflineSessionState has a new structure.
    • Session details such as remainingTimeMillis and approvedTransactionCount moved from ActiveSession into the new sessionData property, e.g. session.getRemainingTimeMillis() becomes session.getSessionData().getRemainingTimeMillis().
    • New PendingUpload state: the session has ended but still has transactions to upload. Call SumUpAPI.uploadOfflineTransactions(...) to upload them. Kotlin when expressions over OfflineSessionState must now handle this state.
    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.
  • 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 after SumUpAPI.logout() when logged in with an access token.
  • A crash during consecutive offline transactions with the success screen skipped.

Android SDKAndroidSDK

Type to search…