Ensure we print the status message if there is a GooglePay error.
This commit is contained in:
parent
6b5117a609
commit
87f175a96b
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue