Skip to content

Commit

Permalink
chore: include error messages in logs for push provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe committed Jun 11, 2024
1 parent 327d8e6 commit f2efcee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object TapAndPayProxy {

listTokensMethod.invoke(client) as Task<List<Any>>
} 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
}
}
Expand All @@ -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
}
}
Expand Down Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -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
Expand All @@ -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"
}
}
Expand Down

0 comments on commit f2efcee

Please sign in to comment.