Skip to content

Update Checkout Payment Element UI analytics attribution - #15028

Draft
cttsai-stripe wants to merge 4 commits into
cttsai/checkout-confirmation-lifecyclefrom
cttsai/checkout-pe-ui-analytics
Draft

cttsai-stripe wants to merge 4 commits into
cttsai/checkout-confirmation-lifecyclefrom
cttsai/checkout-pe-ui-analytics

Conversation

@cttsai-stripe

@cttsai-stripe cttsai-stripe commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

[skip ci]

Summary

Checkout-backed Payment Element UI events currently use the shared Checkout analytics factory. This change supplies a dedicated PaymentElement factory for both inline and presented Payment Element UI and adds checkout_session_id through the existing analytics metadata.

Motivation

Keep attribution in the request factory and session context in loaded metadata, so DefaultEventReporter does not need to classify Checkout events. Prerequisite #15032 moves Checkout confirmation emission into the existing performer; this PR also suppresses legacy Payment Element loading events for the Checkout route.

Decisions

  • Select the factory at each Dagger boundary, including the separate presented-sheet graph. Other integrations retain their current product usage. The provider-based factory defers key lookup until request creation.
  • Snapshot metadata before scheduling raw UI analytics so its session and publishable key belong to the same integration.

Testing

  • Added tests
  • Modified tests
  • Manually verified

Tests have not been run locally, following the CI-first workflow. git diff --check passed. Local pre-push Gradle checks were bypassed.

Screenshots

Not applicable. Analytics payloads only.

Changelog

No entry. This changes analytics for the Checkout preview without changing public API behavior.

Committed and created by Codex.

@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 85cd5ab to 9756682 Compare October 15, 2026 23:29
@cttsai-stripe
cttsai-stripe changed the base branch from master to cttsai/checkout-confirmation-analytics October 15, 2026 23:30
@cttsai-stripe
cttsai-stripe added this pull request to stack #15033 October 15, 2026 23:30
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch 2 times, most recently from 51ff889 to 5bcd225 Compare October 16, 2026 16:49
@cttsai-stripe
cttsai-stripe removed this pull request from stack #15033 October 16, 2026 16:49
@cttsai-stripe
cttsai-stripe changed the base branch from cttsai/checkout-confirmation-analytics to cttsai/checkout-confirmation-metadata October 16, 2026 16:49
@cttsai-stripe
cttsai-stripe added this pull request to stack #15038 October 16, 2026 16:49
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 5bcd225 to 8034f13 Compare October 16, 2026 17:26
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch 2 times, most recently from 6bb0de0 to 95bc030 Compare October 16, 2026 18:59
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch 2 times, most recently from 8d32cf3 to 031d902 Compare October 16, 2026 20:30
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch 2 times, most recently from 69d4623 to 9d8909a Compare October 19, 2026 16:39
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 9d8909a to ec06100 Compare October 20, 2026 04:29
@cttsai-stripe
cttsai-stripe removed this pull request from stack #15038 October 20, 2026 04:29
@cttsai-stripe
cttsai-stripe changed the base branch from cttsai/checkout-confirmation-metadata to cttsai/checkout-confirmation-lifecycle October 20, 2026 04:30
@cttsai-stripe
cttsai-stripe added this pull request to stack #15063 October 20, 2026 04:30
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from ec06100 to 8aaf6d7 Compare October 20, 2026 05:03
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 8aaf6d7 to 5c10dcd Compare October 20, 2026 05:23
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 5c10dcd to 72372f5 Compare October 20, 2026 05:47
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 72372f5 to 039d51b Compare October 20, 2026 06:00
@cttsai-stripe
cttsai-stripe removed this pull request from stack #15063 October 20, 2026 06:00
@cttsai-stripe
cttsai-stripe added this pull request to stack #15065 October 20, 2026 06:01
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 039d51b to 00feaae Compare October 20, 2026 06:09
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 00feaae to 7cfacf9 Compare October 20, 2026 06:47
@cttsai-stripe
cttsai-stripe removed this pull request from stack #15065 October 20, 2026 06:48
@cttsai-stripe
cttsai-stripe added this pull request to stack #15067 October 20, 2026 06:48
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 7cfacf9 to ec44fbc Compare October 20, 2026 07:07
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from ec44fbc to 57f99ff Compare October 20, 2026 16:58
cttsai-stripe and others added 4 commits October 20, 2026 10:27
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@cttsai-stripe
cttsai-stripe force-pushed the cttsai/checkout-pe-ui-analytics branch from 57f99ff to 40f9ffe Compare October 20, 2026 17:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant