diff --git a/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt b/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt index fba107d46..4cf63ffe6 100644 --- a/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt +++ b/android/src/main/java/com/reactnativestripesdk/pushprovisioning/PushProvisioningProxy.kt @@ -65,7 +65,7 @@ object PushProvisioningProxy { ) } } catch (e: Exception) { - Log.e(TAG, "PushProvisioning dependency not found") + Log.e(TAG, "There was a problem using Stripe Android PushProvisioning: " + e.message) } } diff --git a/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt b/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt index 4e31f3ec5..7ed5cd41a 100644 --- a/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt +++ b/android/src/main/java/com/reactnativestripesdk/pushprovisioning/TapAndPayProxy.kt @@ -28,7 +28,7 @@ object TapAndPayProxy { listTokensMethod.invoke(client) as Task> } catch (e: Exception) { - Log.e(TAG, "Google TapAndPay dependency not found") + Log.e(TAG, "There was a problem listing tokens with Google TapAndPay: " + e.message) null } } @@ -39,7 +39,7 @@ object TapAndPayProxy { val existingFpanLastFour = getFpanLastFourMethod.invoke(token) as String existingFpanLastFour == newLastFour } catch (e: Exception) { - Log.e(TAG, "There was a problem finding the class com.google.android.gms.tapandpay.issuer.TokenInfo. Make sure you've included Google's TapAndPay dependency.") + Log.e(TAG, "There was a problem getting the FPAN with Google TapAndPay: " + e.message) false } } @@ -79,7 +79,7 @@ object TapAndPayProxy { token.getInt("network"), REQUEST_CODE_TOKENIZE) } catch (e: Exception) { - Log.e(TAG, "Google TapAndPay dependency not found.") + Log.e(TAG, "There was a problem tokenizing with Google TapAndPay: " + e.message) } } @@ -114,8 +114,7 @@ object TapAndPayProxy { "serviceProvider", tokenInfoClass.getMethod("getTokenServiceProvider").invoke(it) as Int) } catch (e: Exception) { - Log.e(TAG, - "There was a problem finding the class com.google.android.gms.tapandpay.issuer.TokenInfo. Make sure you've included Google's TapAndPay dependency.") + Log.e(TAG, "There was a problem mapping the token information with Google TapAndPay: " + e.message) } } return result @@ -134,8 +133,7 @@ object TapAndPayProxy { else -> "UNKNOWN" } } catch (e: Exception) { - Log.e(TAG, - "There was a problem finding Google's TapAndPay dependency.") + Log.e(TAG, "There was a problem mapping the token state with Google TapAndPay: " + e.message) return "UNKNOWN" } }