Support CheckoutSession saved card expiry and billing updates#13341
Draft
cttsai-stripe wants to merge 8 commits into
Draft
Support CheckoutSession saved card expiry and billing updates#13341cttsai-stripe wants to merge 8 commits into
cttsai-stripe wants to merge 8 commits into
Conversation
256af57 to
6f3451e
Compare
6f3451e to
de91869
Compare
95014ee to
dbf7239
Compare
7be138b to
078a454
Compare
9fe3a0d to
c49ea57
Compare
078a454 to
e3ed93e
Compare
f16d1c7 to
6f1e443
Compare
e3ed93e to
188a3f4
Compare
6f1e443 to
45dbd64
Compare
188a3f4 to
c4e6375
Compare
45dbd64 to
7c3967c
Compare
c4e6375 to
4970b68
Compare
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> Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com> Committed-By-Agent: codex Co-authored-by: codex <noreply@openai.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude
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>
7c3967c to
92c18ee
Compare
Add the ability to update saved payment method billing details and expiry via the checkout session update endpoint. This brings checkout sessions to parity with customer sessions for payment method editing. Changes: - Add updatePaymentMethod to CheckoutSessionRepository that sends payment_method_to_update params (billing_details + expiry_details) - Fill the existing CheckoutSession branch in DefaultSavedPaymentMethodRepository.updatePaymentMethod (previously returned NotImplementedError) - Enable canUpdateFullPaymentMethodDetails for CheckoutSession metadata so the edit UI exposes expiry and billing address fields - Update tests to verify the new routing works correctly Committed-By-Agent: goose
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>
4970b68 to
28f5e4c
Compare
d940807 to
af3b6b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Minion run
Summary
POST /v1/payment_pages/{session_id}withpayment_method_to_update[...]card.networks.preferredMotivation
The CheckoutSession update endpoint supports
payment_method_to_updateforbilling_detailsandexpiry_details, and the Android edit UI plumbing already handles those fields. This closes the CheckoutSession gap for saved card expiry/billing edits without implying support for card number, CVC, allow_redisplay, or card brand choice updates.Verification
./gradlew :paymentsheet:apiCheck :paymentsheet:detekt./gradlew :paymentsheet:apiCheck :paymentsheet:detektNotes
This PR is stacked on #13344.