Both need a user with a card in the Vault first. See Adding a card.
Option A: KERNEL’s native integration
KERNEL stores an Agentcard credential in its own vault and swaps the card in at checkout itself. Full reference: KERNEL docs. SetAGENTCARD_MODE to sandbox or live to match your credentials.
state.authorization fills in. Serve its action.url to the user through your own signed-in thread or app, never to the agent. The user approves with their passkey, the request resumes, and you confirm the order with the merchant before reporting success.
Option B: Agentcard SDK over CDP
Connect Playwright to the KERNEL browser and attach Agentcard the same way as any CDP browser.kernel.browsers.deleteByID(kernelBrowser.session_id) once the order is confirmed.