docs(headless-sdk): add a Test mode section - #100
Open
enesozturk wants to merge 3 commits into
Open
Conversation
How to run the full flow with no real wallet and no real funds: a `wcp_test_` API key on the proxy + the `testMode` flag on usePaymentSession / createPaymentController, plus the extra `/transition` proxy route the test transport calls. Notes that both the client flag and the server test key are required. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
The /en/api-keys route does not exist; the key lives behind the navbar Live/Test dropdown → Developers → API Keys.
…y key Test vs live is a property of the payment (created with a test merchant key), not of the proxy's wallet/gateway key.
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.
Documents test mode for the Headless SDK — run the full flow with no real wallet and no real funds.
Adds a "Test mode" section to the Headless Implementation page covering the two required pieces:
wcp_test_…) on the server proxy (synthetic settlement, see Test mode), andtestModeflag onusePaymentSession/createPaymentController(mock wallet + signer, confirm via the test/transitionendpoint).Plus the extra
/transitionproxy route the test transport calls, and a note that both the client flag and the server test key are required.Related (code)
transitiononTransport+EngineClienttestMode+ mock wallet/signer/transport?test(Docs merge after the SDK PRs ship, since
testModeneeds the released packages.)🤖 Generated with Claude Code