mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-08 09:18:39 +01:00
Ensure we print the status message if there is a GooglePay error.
This commit is contained in:
committed by
Cody Henthorne
parent
6b5117a609
commit
87f175a96b
@@ -102,7 +102,7 @@ class GooglePayApi(
|
|||||||
Activity.RESULT_CANCELED -> paymentRequestCallback.onCancelled()
|
Activity.RESULT_CANCELED -> paymentRequestCallback.onCancelled()
|
||||||
AutoResolveHelper.RESULT_ERROR -> {
|
AutoResolveHelper.RESULT_ERROR -> {
|
||||||
AutoResolveHelper.getStatusFromIntent(data)?.let {
|
AutoResolveHelper.getStatusFromIntent(data)?.let {
|
||||||
Log.w(TAG, "loadPaymentData failed with error code ${it.statusCode}")
|
Log.w(TAG, "loadPaymentData failed with error code ${it.statusCode}: ${it.statusMessage}")
|
||||||
paymentRequestCallback.onError()
|
paymentRequestCallback.onError()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user