Skip to main content
Use a local browser to develop and test on your own machine. For production, use a hosted browser: Anchor, Kernel, Browserbase or Browser Use. Sapiom Browser Pay needs a Chromium-based browser with a Chrome DevTools Protocol (CDP) port. You pass the port’s URL to attachInterceptor.

Start a browser

Let your code open Playwright’s Chromium with a CDP port:
Then launch it from your code:
Or start Chrome yourself with a CDP port and a separate profile, then connect your driver to it:

Attach Sapiom Browser Pay

Pass cdpUrl to attachInterceptor, and drive the checkout in the same browser.

Close the browser

The CDP port controls the whole browser, so keep it on 127.0.0.1. After checkout settles, detach and close the browser: