Applies to: Mobile Payments SDK - Android
Learn how to resolve errors in the Mobile Payments SDK for Android.
AuthorizeErrorCodes
might be returned when using the AuthorizationManager
. These errors are surfaced as a result of your authorization callback.
Error | Description |
---|---|
NO_NETWORK | The Mobile Payments SDK couldn't connect to the network. |
USAGE_ERROR | AuthorizationManager.authorize was used in an unexpected or unsupported way. For more information, see the debugCode and debugMessage within Result.Failure . |
PairingErrorCodes
might be returned when pairing readers using the ReaderManager
. These errors are surfaced as a result of your pairing callback.
Error | Description |
---|---|
BLUETOOTH_ALREADY_SCANNING | Bluetooth scanning is already in progress. Only one scan can be active at a time. Wait for the first scan to complete and try again. |
BLUETOOTH_DISABLED | Bluetooth was disabled by the user. Prompt the user to enable Bluetooth and try again. |
BLUETOOTH_PERMISSION_DENIED | Your application is missing one or both Android runtime permissions for Bluetooth: BLUETOOTH_CONNECT or BLUETOOTH_SCAN . Check for these permissions and try again. |
BLUETOOTH_UNSUPPORTED | This device doesn't support Bluetooth. |
NOT_AUTHORIZED | The Mobile Payments SDK isn't currently authorized with a Square seller account. Use the AuthorizationManager to authorize a Square account. |
TIMEOUT | The Mobile Payments SDK timed out while awaiting reader pairing. Try pairing again. |
USAGE_ERROR | ReaderManager.pairReader was used in an unexpected or unsupported way. For more information, see the debugCode and debugMessage . |
PaymentErrorCodes
might be returned when taking a payment with the PaymentManager
. These errors are surfaced as a result of your payment callback.
Error | Description |
---|---|
CANCELED | The payment was canceled before completion. |
DEVICE_CLOCK_SKEWED | The local device time is out of sync with the server time, which could lead to inaccurate payment reporting. Check your device's time and attempt your action again. |
LOCATION_SERVICES_DISABLED | The device's location services were disabled and the payment couldn't be completed. Enable location services and try again. |
NOT_AUTHORIZED | The Mobile Payments SDK isn't currently authorized with a Square seller account. Use the AuthorizationManager to authorize a Square account. |
TIMEOUT | The Mobile Payments SDK timed out while awaiting a payment. Try the payment again. |
USAGE_ERROR | PaymentManager.startPaymentActivity was used in an unexpected or unsupported way. For more information, see the debugCode and debugMessage within Result.Failure . |