Repository navigation
feat(payments): deprecate marketplace and add payment action items - #728
Conversation
🔴 Risk Classification: MAJORApproval route: AI Review + Human Approval Required Classification reasons
Operational gates
Files analysed: 10 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 |
🟢 Advisory review: Looks good to meThis PR still needs a human approval — wall-e cannot auto-approve it. For what it's worth, I read the diff and found nothing I'd block on. This PR deprecates the What I checked
This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02 |
|



Summary
The API now refuses a payment request that carries
marketplace(422marketplace_not_supported); the field is not part of the payment request in the API specification, andamount_allocationsreplaces it. The deprecation ofmarketplaceon the payment, capture, payment action and get payment types now says so and points toamountAllocations, theMarketplaceDataclasses are deprecated, and nothing sent changes. The OAuth payment integration test sendsamountAllocationsinstead, andPaymentActionreads theitemsthe API returns.Changes
src/main/java/com/checkout/payments/request/PaymentRequest.java: themarketplacedeprecation says the API rejects it (422marketplace_not_supported), to useamountAllocationsand that it goes in the next major version.src/main/java/com/checkout/payments/CaptureRequest.java:marketplacedeprecation reworded (not part of the API specification,amountAllocations, next major version); class and every property documented from the spec.src/main/java/com/checkout/payments/PaymentAction.java: samemarketplacerewording; class and every property documented from the spec; newitems(List<ProductResponse>), which the spec defines on the payment action and the SDK did not read.src/main/java/com/checkout/payments/response/GetPaymentResponse.java: samemarketplacerewording.src/main/java/com/checkout/common/MarketplaceData.java,MarketplaceDataSubEntity.java: classes (and the nestedMarketplaceCommission) deprecated in favour ofAmountAllocationsandCommission; fields documented. Only the deprecatedmarketplacefields use them; sessions use their ownSessionMarketplaceData.src/test/java/com/checkout/OAuthTestIT.java: the OAuth payment allocates its amount to the sub-entity withamountAllocationsinstead ofmarketplace; without an allocation the API answers 422amount_allocations_required.src/test/java/com/checkout/payments/PaymentsSerializationTest.java(new): capture request empty and with every property, payment action with every property and the spec example, and the deprecatedmarketplaceon both.src/test/java/com/checkout/payments/response/GetPaymentResponseSerializationTest.java(new) andPaymentRequestSerializationTest.java:marketplaceandamountAllocationsread the same allocation from a get payment response; themarketplaceJSON of a payment request is pinned unchanged.Design notes:
marketplaceis deprecated, not removed. Removing it would break code that compiles today, and the API still accepts it on a capture and still returns it on a get payment and its actions, next toamount_allocations. Only the payment request text says the API rejects it, because that is the call verified to fail.PaymentAction.itemsis added because the class was audited against the spec in full for this change and the field was missing; it is read only.API Reference
POST /payments(amount_allocationsreplacesmarketplace): https://api-reference.checkout.com/tag/payments/POST/paymentsPOST /payments/{id}/captures,GET /payments/{id}andGET /payments/{id}/actions: documentation of the deprecated field;GET /payments/{id}/actionsalso readsitems.Breaking changes
None. No signature, type, default or wire change;
PaymentAction.itemsis a new property. Code that usesMarketplaceDataorMarketplaceDataSubEntitynow gets deprecation warnings, which fail a build compiled with-Werror. Migration: useamountAllocationsandAmountAllocations.Tests
./gradlew clean compileJava compileTestJava javadoc --no-scan: green, javadoc warnings unchanged (103 before and after)../gradlew test --no-scan --tests '*SerializationTest' --tests com.checkout.payments.PaymentsClientImplTest --tests com.checkout.OAuthTestIT: 836 tests, 0 failed.OAuthTestITagainst the sandbox: 1 of 6 failed before (422marketplace_not_supported), 6 of 6 pass after.Related
None.