Skip to content

docs(headless-sdk): information capture via collectData.schema (native) - #103

Open
enesozturk wants to merge 3 commits into
mainfrom
enes/headless-ic-docs
Open

docs(headless-sdk): information capture via collectData.schema (native)#103
enesozturk wants to merge 3 commits into
mainfrom
enes/headless-ic-docs

Conversation

@enesozturk

@enesozturk enesozturk commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Documents information capture for the headless SDK (WCPBX-1082), scoped to the native collectData.schema path.

Adds an Information capture section: render the identity form from collectData.schema (the Engine's JSON Schema — properties, required, anyOf POB/POR, tosConfirmed) and submit via submitInfoCapture(data). Marks collectData.fields deprecated. Updates the InformationCapture render case to use schema instead of the deprecated fields.

The hosted collectData.url path is parked for now — its cross-origin completion detection is blocked by the /collect page's COOP (see the issue), so it isn't offered to headless users yet.

Pairs with buyer-experience #1195 (example renders from schema).

…ve schema

Add an Information capture section: the hosted collectData.url form as the
recommended path (zero UI, via notifyInfoCaptureSubmitted), the native
collectData.schema form as the custom-UI alternative, and a deprecation note
on collectData.fields. Update the InformationCapture render case to match.
@mintlify

mintlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wc-pay-docs 🟢 Ready View Preview Sep 2, 2026, 1:25 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@enesozturk

Copy link
Copy Markdown
Contributor Author

Closing — this presented the hosted-URL IC path as primary, which we're parking (the SDK can't cleanly detect hosted-form completion; host-triggered signal is the wrong DX). Native (schema) IC docs to be redone separately.

@enesozturk enesozturk closed this Sep 2, 2026
Reframe the hosted information-capture path around openInfoCapture(): one call,
the SDK opens the WC-hosted form and detects completion itself — the integrator
wires no completion handling. Drops the host-triggered signal framing. Native
schema path + fields-deprecation note unchanged.
…d URL for now)

Render the identity form from collectData.schema + submitInfoCapture; deprecate
fields. The hosted collectData.url path is parked (cross-origin completion
detection blocked by the /collect COOP), so it's not offered to headless users
yet.
@enesozturk enesozturk changed the title docs(headless-sdk): information capture — hosted URL (primary) + native schema docs(headless-sdk): information capture via collectData.schema (native) Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant