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.
- 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.
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.