Repository navigation
Document KERNEL wallet payment methods and payment requests - #728
Draft
hiroTamada wants to merge 1 commit into
Draft
hiroTamada wants to merge 1 commit into
hiroTamada wants to merge 1 commit into
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
This branch was successfully deployed
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.
Warning
Blocked on the v0.133.0 SDK release. The examples use types and operations (
add_payment_method,remove_payment_method,payment_request,VaultPaymentMethod.status,funding_status) that first ship in@onkernel/sdk,kernel(Python), andkernel-go-sdkv0.133.0. As of this PR the latest published release is v0.132.0 and the 0.133.0 release PRs are still open. This repo pins no SDK version, so there's nothing to bump here, but don't merge until v0.133.0 is published. Then re-run the snippet typecheck below against the published packages.Description
Documents KERNEL wallet payment methods and
payment_requestitems, which just shipped in the API. Both are enabled per organization and are off by default. The API reference is generated from the live spec, so it isn't edited here.New page
integrations/wallets/kernel-payment-methods(added to nav after KERNEL Card):connectedwalletsadd_payment_method: the single-usecard_enrollmentlink, sharing it privately with the cardholder,capture_tokenfor embedded capture, and the 30-minute expiry409expand=payment_methodsand method statuses (pending_enrollment,active,removal_pending,recovery_required)payment_method_id, andcardvspayment_requestitemsstate.payment_method_idandfunding_statusremove_payment_methodwith its409 purchase_unresolved,409 provider_revocation_pending, and429 provider_rate_limitedvaults:writerequirement, and the wallet and purchase eventsThe page states that this needs enablement ("contact support"). It also states that organizations without it keep the single-card wallet, which starts in
pending_authorizationwith default methodcard.integrations/wallets/kernel: a note pointing to payment methods. The purchase steps now say that omittingpayment_method_idselects the default cardcard, and thatstate.payment_method_id/funding_statusare reported. The single-card flow is unchanged.integrations/wallets/embedded-card-capture: keeps the walletaction.capture_tokenpath and adds the payment-methods path, where the token comes fromadd_payment_method'spayment_method.action.capture_token. Completion and token-lifetime guidance now covers both paths.info/api-key-permissions:add_payment_method/remove_payment_methodneedvaults:writein addition tovaults:use. Without it a key gets403 insufficient_scopeand the wallet doesn't advertise either operation.browsers/payments,integrations/wallets/overview,vaults/overview: mentionpayment_requestalongsidecardfor Link and KERNEL purchases. AgentCard stayscard. Also link the new page.New examples are TypeScript and Python only. The CLI doesn't support these operations yet (it's on SDK v0.131.0), so there are no CLI tabs. No CLI reference page documents vault commands.
Testing
tsc --strict --noEmitagainst the@onkernel/sdk0.133.0 release branch source. The new code has no errors. The only errors are SDK-internalRequestInit.duplexlib typings and a pre-existingwalletredeclaration between two separate sections of the embedded-capture page.pyrightagainstkernel0.133.0 installed from the release branch. Result: 0 errors.mint broken-links: no broken links.mint broken-links --check-anchors: 7 broken anchors, all pre-existing onmainand none in the files changed here.mint validate: build passed.git diff --check: clean.mint dev: all seven changed pages return 200 and render the new content. Preview the new page locally athttp://localhost:3000/integrations/wallets/kernel-payment-methods(README:mintlify dev). Once deployed it's athttps://kernel.sh/docs/integrations/wallets/kernel-payment-methods.Additional Notes
gh release list -R kernel/kernel-node-sdk, and the same forkernel-python-sdkandkernel-go-sdk), then re-run the typecheck against the published packages.add_payment_method,remove_payment_method, andpayment_request.