Skip to main content
Browser Pay connects to the Browser Use browser your worker drives through its CDP URL, cdpUrl, which can be an HTTPS discovery URL. If you already have a browser, use its cdpUrl and go to Attach Browser Pay.

Create a browser

Create a browser session with your Browser Use API key. This starts a browser in your Browser Use account. It does not create a Sapiom transaction.
timeout is in minutes. Make it long enough for the whole checkout. Pass cdpUrl to attachInterceptor, and connect your driver to the same URL. In Puppeteer, pass it as browserURL, not browserWSEndpoint. Do not pass liveUrl; it is for watching the browser.

Stop the browser

After checkout settles, call handle.detach(), close your driver, and stop the browser: