Browserbase Documentation home page
Search...
⌘K
Documentation
APIs and SDKs
Changelog
Introduction
What is Browserbase?
What is a headless browser?
Getting started
Stagehand
Playwright
Puppeteer
Selenium
Fundamentals
Create a Browser Session
Using a Browser Session
Manage a Browser Session
Features
Stealth Mode
Proxies
Live View
Viewports
Session Replay
Session Inspector
Downloads
Uploads
Screenshots & PDFs
Contexts
Browser Extensions
Metadata
Use Cases
Form Submissions
Web Scraping
Automated Tests
Guides
Improving Performance
Optimizing Cost
Long Running Sessions
Browser Regions
Measuring Usage
Using Session Metadata
Plans and Pricing
Concurrency & Rate Limits
Handling Authentication
Enterprise Security
Manage Account
Allowlisted VPN Routing
Integrations
Get Started with Integrations
AgentKit
Agno
Braintrust
Browser Use
CrewAI
Langchain
Mastra
MCP Server
MongoDB
OpenAI CUA
Portia AI
Stripe
Introduction
Quickstart
Temporal
Trigger
Val Town
Vercel
Support
Dashboard
Browserbase Documentation home page
Search...
⌘K
Ask AI
Support
Dashboard
Dashboard
Search...
Navigation
Stripe
Introduction
On this page
Overview
Prerequisites
Quickstart Guides
Stripe
Introduction
OpenAI
Open in ChatGPT
Give your AI agent a responsible credit card to use for online payments.
OpenAI
Open in ChatGPT
Overview
By the end of this guide, your
Browserbase
agent will retrieve a virtual card from
Stripe
and make a donation to the Red Cross.
You’ll learn how to:
Generate a virtual credit card
using the Stripe API with spending controls.
Use Browserbase to
make purchases
with the virtual card.
This integration is useful for:
Creating a restricted credit card for your AI agent to use for online payments.
Retrieving card details from Stripe.
Automating the input of card details into a web form.
Prerequisites
Before you start, make sure you have:
Stripe API key
Stripe access to
create a virtual card
Browserbase Project ID & API key
(Optional)
LLM API key of your choice to use with
Stagehand
.
Next, let’s dive into
creating a virtual card with the Stripe API
.
Quickstart Guides
Node.js
Learn how to create virtual cards, set spending controls, and automate payments using
Stripe, Playwright, and Browserbase
in Node.js.
Python
Get started with
Stripe, Playwright, and Browserbase
in Python to generate virtual cards and automate online transactions.
Stagehand
Use
Stagehand AI with Playwright
to automate credit card creation, transactions, and online payments with ease.
Follow the Guide
Follow the quickstart guide to create a virtual card and make a purchase.
Was this page helpful?
Yes
No
Quickstart
Quickstart
Assistant
Responses are generated using AI and may contain mistakes.