2025-09-08 Changelog

Android
Mobile Payments SDK
Link to section

Details

Link to section

Android Mobile Payments SDK 2.3.1

Settings Manager

  • New field- trackingConsentState. Returns the current consent state for the authorized Square merchant. The options are:

    • PENDING
    • GRANTED
    • DENIED
    • NOT_REQUIRED
  • New method - updateTrackingConsent(granted: Boolean). Log whether merchants using your application have granted or denied consent for performance and analytics tracking. If this method is not used, and a payment is made in a country requiring consent, the first payment prompts the user for permission.

  • New PaymentErrorCode - CONSENT_NOT_PROVIDED. This error appears if you use a custom payment prompt UI for merchants in regions requiring consent for performance tracking without explicitly granting or denying consent via the API.

  • This release also includes improvements to accessibility and Tap to Pay on Android.