How it works
- Prepare the order. Navigate the site, select items, and read the final total and billing terms.
- Request payment. Use Link to create a spend request describing the merchant, amount, and purchase.
- Get the user’s approval. Present Link’s approval URL and wait for Link to report
approved. - Complete checkout. Fill the credential directly into the browser fields, submit once, and verify the merchant’s confirmation.
Prerequisites
- A Browserbase account and API key.
- A Link account with an eligible payment method.
Choose your tools
Both guides use the same 1-800-Flowers delivery. Choose the path that matches how you build or use your agent. Your application or coding agent controls how it plans tasks, selects products, and asks the user for missing details.Stagehand + Link SDK
Add purchases to an agent or application you build. Copy the complete
TypeScript example and walk through each step.
Browse CLI + Link CLI
Give an existing coding agent browser and wallet tools. Install the CLIs,
connect your wallet, and send the flower-delivery task.