Skip to content

Commit

Permalink
Merge pull request stripe#2772 from stripe/porter/error-message-log
Browse files Browse the repository at this point in the history
Log error_message to our analytics table
  • Loading branch information
porter-stripe authored Jul 24, 2023
2 parents 9622f5e + 2e258ca commit c23ca82
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ extension STPAnalyticsClient {
additionalParams["currency"] = currency
additionalParams["is_decoupled"] = intentConfig != nil
additionalParams["error_domain"] = (error as? NSError)?.domain
if let error = error as? PaymentSheetError {
additionalParams["error_message"] = error.safeLoggingString
}
additionalParams["deferred_intent_confirmation_type"] = deferredIntentConfirmationType?.rawValue

for (param, param_value) in params {
Expand Down

0 comments on commit c23ca82

Please sign in to comment.