> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browserbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Give your AI agent a responsible credit card to use for online payments.

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:

1. **Generate a virtual credit card** using the Stripe API with spending controls.
2. 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](https://dashboard.stripe.com/apikeys)
  * Stripe access to [create a virtual card](https://dashboard.stripe.com/issuing/cards)
* [Browserbase Project ID & API key](https://browserbase.com/settings/)
* *(Optional)* LLM API key of your choice to use with [Stagehand](https://www.stagehand.dev/).

Next, dive into **creating a virtual card with the Stripe API**.

## Quickstart guides

<CardGroup cols={3}>
  <Card title="Node.js" icon="code" iconType="sharp-solid" href="https://github.com/browserbase/integrations/tree/master/examples/integrations/stripe/node">
    Learn how to create virtual cards, set spending controls, and automate payments using **Stripe, Playwright, and Browserbase** in Node.js.
  </Card>

  {" "}

  <Card title="Python" icon="code" iconType="sharp-solid" href="https://github.com/browserbase/integrations/tree/master/examples/integrations/stripe/python">
    Get started with **Stripe, Playwright, and Browserbase** in Python to generate
    virtual cards and automate online transactions.
  </Card>

  <Card title="Stagehand" icon="code" iconType="sharp-solid" href="https://github.com/browserbase/integrations/tree/master/examples/integrations/stripe/stagehand">
    Use **Stagehand AI with Playwright** to automate credit card creation, transactions, and online payments with ease.
  </Card>
</CardGroup>

<CardGroup cols={1}>
  <Card title="Follow the guide" icon="book" iconType="sharp-solid" href="/integrations/stripe/quickstart">
    Follow the quickstart guide to create a virtual card and make a purchase.
  </Card>
</CardGroup>
