Product Station · Payments & finance

Stripe

Template

Stripe takes payments online: charges, refunds and payouts.

Thanks to this station, any AI agent can also safely list charges and refund a payment. Above 50 EUR, a human approves the refund.

Opened to agents, through a station

Source

API operations

stripe-payments

  • listChargesreadmapped
  • createRefundwritemapped

Not mapped

  • createApiKeynot mapped

An operation the station does not map is out of every agent's reach.

Capabilities

MCP
Skills and playbooks agents can call
  • list-chargesskill

    List charges.

    Calls · listCharges

  • create-refundskill

    Create refund.

    Calls · createRefund

  • refund-a-paymentplaybook

    In order: list-charges, then create-refund.

    Steps · list-charges, create-refund

Policies

Checked by the station

At each access

  • The support-agent profile may call listCharges, createRefund; nothing else.support-agent

At each action

  • Above 50 EUR, a human approves the refund.max-refund

Scenario Replays

An agent works through the station. Simulated scenarios, no real data, no key required.

Refund under the limit

What you will see: A limit in amount: under the limit the agent acts alone, with no risk of a double refund.

Agent connected to the station through MCP
  1. HumanRefund 30 EUR to the customer for order 8812.
  2. AgentI'll find the payment, then refund.
  3. MCP calllistCharges(order: "8812")
  4. StationPayment found: 59 EUR.OKRule applied: profile support-agent
  5. MCP callcreateRefund(charge: "8812", amount: 3000)
  6. StationRefund of 30 EUR created, only once even if the call is repeated.OKRule applied: max-refund

The configuration in detail

station_config.yamlRead the docs →

Everything the station does fits in this file. The replay above applies it, and a copy starts from it. The values are examples to adapt, not a recommendation.

station:
  id: stripe
  kind: product
  policies:
    - {policy: max-refund, at: submit}

global:
  language: en
  timezone: Europe/Paris

apis:
  - id: stripe-payments
    operations:
      listCharges:         {access: read}
      createRefund:        {access: write, risk: high}
    # not listed, so not available to the agent:
    # createApiKey

profiles:
  support-agent:
    allow: [listCharges, createRefund]

policies:
  max-refund:
    type: rule
    when: "action == createRefund and amount > 5000"
    effect: needs-human
    reason: "Above 50 EUR, a human approves the refund."

skills:
  - {id: list-charges, uses: listCharges}
  - {id: create-refund, uses: createRefund}

playbooks:
  - id: refund-a-payment
    tasks: [list-charges, create-refund]