fix(payments): align PaymentSetups confirm param with the spec - #235
Merged
armando-rodriguez-cko merged 1 commit intoSep 10, 2026
Merged
Conversation
…h param
The confirm_payment_setup path param was named payment_method_option_id,
which is not a valid API concept. The real path is
/payments/setups/{id}/confirm/{payment_method_name}, so the param and its
usage in URL building are renamed accordingly. Also aligns the (currently
skipped) integration test's expected confirm response fields with the full
PaymentSetup schema, which is what the confirm endpoint actually returns.
🟢 Risk Classification: LOWApproval route: AI Auto-Approval Classification reasons
Operational gates
Files analysed: 3 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
|
There was a problem hiding this comment.
✅ Auto-approved — this PR meets all Low-risk criteria.
All checks passed, no unresolved comments, and the change classification is:
no_low_class_matchedprod_source_modified2.2.6_logical_extension:The change is a pure parameter rename to align a broken path parameter with the actual API spec, reusing existing code paths and abstractions without any new endpoints, persistence, auth changes, or external integrations.
wall-e 2026.06.19-02 · policy 376219bc71e6…
david-ruiz-cko
approved these changes
Sep 10, 2026
armando-rodriguez-cko
deleted the
fix/INT-1669-payment-setups-alignment
branch
September 10, 2026 10:03
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.



Summary
The PaymentSetups confirm endpoint's path parameter was named
payment_method_option_id, a name that does not exist in the API and so could never work against the server. Renamed topayment_method_name, matching the real pathPOST /payments/setups/{id}/confirm/{payment_method_name}. Also corrected the (currently skipped) confirm integration test, whose expected response fields modeled a payments-charge shape (action_id/processed_on) instead of the actualPaymentSetupresponse the endpoint returns.Changes
checkout_sdk/payments/setups/setups_client.py—confirm_payment_setup()param renamedpayment_method_option_id→payment_method_name(signature, path build)tests/payments/setups/payment_setups_client_test.py— updated confirm test to use the correct param nametests/payments/setups/payment_setups_integration_test.py— renamed var and corrected the confirm response's expected fields to thePaymentSetupshapeVerified separately: the create/update request already models
billing_descriptor,presentment_details,terminal, and this client has no typed response models to misalign (responses are dynamic/raw), so no further changes were needed for those.API Reference
POST /payments/setups/{id}/confirm/{payment_method_name}Breaking changes
None — the old parameter name never worked against the real API, so no working caller can regress.
README
No README changes needed.