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 wallet in its 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 authenticated channel, never to the agent. The user approves with Face ID, 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.