Skip to main content
Browser Pay connects to the Browserbase session your worker drives through its CDP WebSocket URL, connectUrl. If you already have a session, use its connectUrl and go to Attach Browser Pay.

Create a session

Create a session with your Browserbase API key. This starts a browser in your Browserbase account. It does not create a Sapiom transaction.
timeout is the session’s maximum length in seconds. Make it long enough for the whole checkout. Pass cdpUrl to attachInterceptor, and connect your driver to the same URL.

Release the session

After checkout settles, call handle.detach(), close your driver, and request release:
The session ends when its status is COMPLETED.