This repository was archived by the owner on May 24, 2026. It is now read-only.
Unify purchase receipt payment outcomes#5
Merged
GsCommand merged 1 commit intoMar 19, 2026
Conversation
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Motivation
checkout.receiptandpurchase.receiptby standardizing payment outcome vocabulary to payment-native valuescaptured/failed/pending.purchasereceipts carry the same evidence ascheckoutreceipts by surfacingpayment_prooffor successful settlements.purchasetoward the existing checkout model without broad schema changes.Description
purchase.receiptstatus enum fromaccepted/rejected/pendingtocaptured/failed/pendinginschemas/v1.1.0/commercial/purchase/purchase.receipt.schema.json.x402_proof$defsand apayment_proofproperty topurchase.receipt, and requiredpayment_proofwhen top-levelstatusiscapturedvia conditionalallOfrules.reasonconditional for non-settled outcomes (failed/pending) so error reasoning remains required in those cases.examples/v1.1.0/commercial/purchase/valid/900-purchase.receipt.valid.jsonnow usesstatus: "captured"and includes an x402payment_proof, andexamples/v1.1.0/commercial/purchase/invalid/900-purchase.receipt.invalid.jsonwas adjusted to exercise the missing-proof failure path.schemas/v1.1.0/commercial/purchase/purchase.receipt.schema.json,examples/v1.1.0/commercial/purchase/valid/900-purchase.receipt.valid.json, andexamples/v1.1.0/commercial/purchase/invalid/900-purchase.receipt.invalid.json.Testing
npm run validateand the full schema validation suite, which completed successfully.npm run validate:examplesand all example sets validated, including the updated purchase examples.payment_proofand the invalid fixture remains invalid for the intended missing-proof case.Codex Task