---
title: "Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents"
description: "Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases."
url: "https://swe.quest/articles/agents-that-can-pay-building-restock-with-stripe-s-link-and-managed-deep-agents-d2c567a5926dc321"
canonical: "https://www.langchain.com/blog/agents-that-can-pay-with-stripe-link"
source: "LangChain"
published: "2026-10-08"
difficulty: "medium"
kind: "How-to"
reading_minutes: 6
tags: ["ai-agents","payments","identity-auth","api-design"]
---

# Agents that can pay: building Restock with Stripe's Link and Managed Deep Agents

A post on [LangChain](https://swe.quest/sources/langchain.md), published 2026-10-08, 6 min read, How-to. Original: [https://www.langchain.com/blog/agents-that-can-pay-with-stripe-link](https://www.langchain.com/blog/agents-that-can-pay-with-stripe-link)

## Summary

Restock is a sample Slack office-supply agent on Managed Deep Agents that makes real purchases. It searches Zinc, builds a cart, and pays through Stripe's Link wallet over the Machine Payments Protocol, where the merchant returns HTTP 402 with payment instructions and the client retries with a shared payment token. Spending limits and approvals live in code the model can't touch. The user sets an upfront amount under the budget, approves it through a Slack interrupt and again in Link, and the agent reads actual fees from the 402 challenge first. Credentials stay in per-user Connections and a sandbox, tokens are deleted after use, and an order counts as placed only when the merchant reports it.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Payments & fintech](https://swe.quest/tags/payments.md) (Domains)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)

## Prerequisites

- LLM agent tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- HTTP status codes
- Slack app integration

## Keywords

Machine Payments Protocol, Stripe Link, Managed Deep Agents, Zinc, LangChain, Slack, pympp, LangSmith

## Related posts

- [Agents That Pay | How Nevermined Empowers LangChain Agents to Buy and Sell Services](https://swe.quest/articles/agents-that-pay-how-nevermined-empowers-langchain-agents-to-buy-and-sell-7cd324b4f0e9ab29.md): LangChain · 2026-09-03 · Medium · 11 min read · AI agents, Payments & fintech, Observability
  Nevermined lets operators delegate a credit card to a LangChain agent once, under a server-enforced spend policy covering total budget, time window, per-purchase cap and transaction count.
- [How Stripe Built Kai on Deep Agents in 1 Week](https://swe.quest/articles/how-stripe-built-kai-on-deep-agents-in-1-week-5e7920645288a8b2.md): LangChain · 2026-11-10 · Medium · 9 min read · AI agents, LLMs, System design, Developer productivity
  Stripe's company-wide productivity agent Kai was built by one engineer in a week on LangChain's open-source Deep Agents harness.
- [Stripe: An orchestration layer, not a platform](https://swe.quest/articles/stripe-an-orchestration-layer-not-a-platform-2631e1b527d6ba7d.md): Render · 2026-08-09 · Easy · 4 min read · API design, Payments & fintech, AI agents, Developer tools
  Stripe Projects is a CLI and open protocol that lets developers (or coding agents) create provider accounts, provision services, manage environment variables and pay for upgrades across roughly 50 providers from one place.
- [How to build great out-of-the-box user experiences with Managed Deep Agents](https://swe.quest/articles/how-to-build-great-out-of-the-box-user-experiences-with-managed-deep-agents-dfa5ee4c60058578.md): LangChain · 2026-10-09 · Medium · 5 min read · AI agents, Python, Product engineering
  Managed Deep Agents v0.9 adds a \`reactions\` attribute for Slack channels that accepts either a static emoji string or an async callable, letting agents acknowledge messages with contextual emoji as a loading state.
- [How We Built LangChain’s Paid Media Agent](https://swe.quest/articles/how-we-built-langchain-s-paid-media-agent-c859415582fca684.md): LangChain · 2026-10-29 · Medium · 18 min read · AI agents, LLMs, System design, Ads
  LangChain's Paid Media Agent is a Slack-resident Deep Agent that merges ad-platform data with warehouse pipeline data, produces weekly per-platform PDF reports, answers follow-up questions, and proposes campaign changes for human approval.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
