- The Mobile Payments SDK is launching in the United Kingdom as a private alpha. Please contact [email protected] for information.
Important
Deprecation notice:
readerInfo.stateis deprecated. For a more descriptive representation of a reader's state, use the newreaderInfo.statusfield. For more information, see Reader status.idempotencyKeyis deprecated. To handle idempotent payment requests, use the newpaymentAttemptIdfield. For more information, see Idempotency and payment attempts.
readerInfo.status- A new sealed class with more descriptive reader representation. It replaces the deprecatedstate. The possible reader statuses are:ConnectingToDeviceConnectingToSquareReaderUnavailableFaultyReady
ReaderUnavailableReason- A new enum with detailed error information for unavailable readers.ConnectionType- A new enum in theReaderInfoclass describing the connection type of the reader. The possible connection types are:USBBLUETOOTHAUDIOEMBEDDED
paymentAttemptID- A new parameter representing a payment attempt. When included in the call tostartPaymentActivity, an idempotency key is generated by Square and regenerated if multiple requests are made for a single payment attempt (for example, in markets with Strong Customer Authentication (SCA) requirements).readerManager.retryConnection()- A new method for retrying the connection with Square servers in the event that a reader's status isReaderUnavailable.getIdempotencyKey(paymentAttemptId)- A new method to retrieve the final idempotency key used for a payment attempt.getAllIdempotencyKeys- A new method for retrieving all payment attempt IDs from the last 24 hours and their idempotency keys from local storage.currentPaymentHandle- A PaymentHandle for interacting with the currently active payment.nullif no payment is in progress.