Pair a Square Reader with the Reader SDK
To pair a Contactless and Chip Card Reader, conform to the SQRDReaderSettingsControllerDelegate
protocol and present the Reader settings flow.
Important
If the iOS device hosting your application is on iOS 14, you must upgrade to the latest Reader SDK to successfully pair with a reader.
import SquareReaderSDK
extension <#YourViewController#>: SQRDReaderSettingsControllerDelegate {
func pairCardReaders() {
let readerSettingsController = SQRDReaderSettingsController(
delegate: self
)
readerSettingsController.present(from: self)
}
func readerSettingsControllerDidPresent(
_: SQRDReaderSettingsController
) {
print("Reader settings flow presented.")
}
func readerSettingsController(
_: SQRDReaderSettingsController,
didFailToPresentWith error: Error
) {
print(error)
}
}