Ensure we print the status message if there is a GooglePay error.

This commit is contained in:
Alex Hart 2021-11-17 15:26:22 -04:00 committed by Cody Henthorne
parent 6b5117a609
commit 87f175a96b

View file

@ -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()
} }
} }