Generic SPT Spec - #312
Open
armsteadj1 wants to merge 2 commits into
Open
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 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
Adds a processor-neutral Shared Payment Token (
spt) charge method profile for HTTP Payment Authentication, plus a concrete Stripe bridge example.The goal is to let servers advertise one generic SPT payment method while allowing client/server enablers to fulfill and redeem the payment through Stripe or another SPT-capable processor without leaking processor-specific object models into the HTTP challenge.
What changed
specs/methods/spt/draft-spt-charge-00.md.sptmethod identifier for one-time charge payments.examples/spt-stripe-bridge.md.method="spt"challenge can be fulfilled with a Stripe Shared Payment Token through Stripe-specific adapters.seller_details.network_business_profile,usage_limits, andpayment_method_data.shared_payment_granted_token.examples/README.mdto link the Stripe bridge example.Design notes
sharedPaymentTokenplus a selectedprocessoridentifier; processor-specific details stay behind client/server enabler adapters.methodDetails.processors[], so a server can offer multiple SPT-capable processors without creating one HTTP payment method per processor.Validation
Passed locally:
git diff --checkpython scripts/lint_frontmatter.pypython scripts/lint_external_section_refs.pykramdown-rfc specs/methods/spt/draft-spt-charge-00.mdxml2rfc --text --no-pagination artifacts/draft-spt-charge-00.xmlxml2rfc --html --no-pagination artifacts/draft-spt-charge-00.xmlrfclint --no-rng --no-spell artifacts/draft-spt-charge-00.xmlNot run locally:
kramdown-rfc/xml2rfcpath above.