Skip to content

Deliver CheckoutController confirmation results - #13802

Draft
jaynewstrom-stripe wants to merge 2 commits into
jaynewstrom/checkout-session-confirmation-responsefrom
jaynewstrom/checkout-controller-confirmation-results
Draft

Deliver CheckoutController confirmation results#13802
jaynewstrom-stripe wants to merge 2 commits into
jaynewstrom/checkout-session-confirmation-responsefrom
jaynewstrom/checkout-controller-confirmation-results

Conversation

@jaynewstrom-stripe

@jaynewstrom-stripe jaynewstrom-stripe commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a controller-scoped handler that converts terminal confirmation states into CheckoutController.Result callbacks.
  • Delivers completed and failed results, reports applicable cancellations, and handles interrupted next actions after process death.
  • Registers result observation when the controller is constructed and updates the playground to use Result.Completed for completion.

Stack position: 3 of 5, based on #13801.

Motivation

CheckoutController.Builder.resultCallback was bound into the component but terminal confirmation results were not forwarded to it. Centralizing the mapping gives the controller one exactly-once result path and preserves the distinction between merchant-visible cancellation and returning to payment details.

Testing

  • Added tests

  • Modified tests

  • Manually verified

  • ./gradlew :paymentsheet:testDebugUnitTest --tests com.stripe.android.checkout.CheckoutConfirmationResultHandlerTest --tests com.stripe.android.checkout.CheckoutControllerTest

  • ./gradlew :paymentsheet-example:compileBaseDebugKotlin

No tests were ignored.

Screenshots

Not applicable — there are no visual changes.

Changelog

Not included — CheckoutController remains a preview API.

@jaynewstrom-stripe
jaynewstrom-stripe requested review from a team as code owners August 6, 2026 19:19
@jaynewstrom-stripe
jaynewstrom-stripe requested review from toluo-stripe and removed request for a team August 6, 2026 19:19
@jaynewstrom-stripe
jaynewstrom-stripe marked this pull request as draft August 6, 2026 19:21
@jaynewstrom-stripe
jaynewstrom-stripe force-pushed the jaynewstrom/checkout-controller-confirmation-results branch from 5447187 to f37a3dc Compare August 6, 2026 19:49
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
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