- The Mobile Payments SDK now supports Android API 35.
- To comply with data privacy laws, merchants in Canada, the United Kingdom, and the European Union must grant or deny consent for analytics and performance tracking by Mobile Payments SDK applications.
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.