Card payments for every element of your node
Your shop or booking page asks this element for a payment link with one call. The buyer pays on Stripe's own page, and the money goes to your Stripe account.
OpenSource Web4 agent & app starter kitHow a payment goes
Your element
Asks for a payment link: the amount, the currency and its own order number.
Stripe element
Creates a Stripe Checkout session with your keys and returns its link.
Stripe Checkout
Takes the card on Stripe's side, so card numbers never pass through your computer.
Your Stripe account
Receives the money at Stripe's own prices. Fractera adds no fee.
Stripe then sends a signed event back, and the element records it for the element that sold: paid, failed, expired or refunded.
Off until you enter your keys
Stripe is the only element of the node that arrives turned off: turn it on after you enter your Stripe keys. The switch is in the core, on this element's settings page.
What changes for you
| Without it | With the Stripe element |
|---|---|
| Each site needs its own Stripe integration | Each element makes one call and gets a payment link |
| Your Stripe keys are copied into every project | The keys live in this element and are checked with Stripe before they are saved |
| Every app writes and protects its own webhook | One webhook checks Stripe's signature and records each event once |
| You check each app to see whether an order was paid | One call per order tells you whether it is paid, open or expired |
| Your coding agent writes payment code from memory | Your agent follows Stripe's own skill and works through Stripe's MCP server |
An agent that knows your Stripe account
This element's agent connects to Stripe's MCP server with an agent key. It can read and set up your account: products, prices, webhook endpoints and the history of a payment.
An agent key is a restricted key you create in Stripe for agents. Stripe holds payouts, refunds and account changes made with it until a reviewer approves them. A refund asked through MCP reaches you as a link to confirm.
use-stripe: the rules of this element. Which tool fits which job, a sandbox before live keys, refunds wait for a person, keys appear only by name.stripe-best-practices: Stripe's own skill on Checkout, keys and webhooks.
{
"mcpServers": {
"stripe-agent": {
"type": "http",
"url": "https://mcp.stripe.com",
"headers": { "Authorization": "Bearer rk_test_…" }
}
}
}Turn it on in four steps
- 1
Copy the publishable and secret keys from dashboard.stripe.com/apikeys. Start with the test keys of a sandbox.
- 2
On dashboard.stripe.com/webhooks, create an event destination for
https://stripe.<your domain>/api/stripe-webhookand copy its signing secret. - 3
For the agent's Stripe tools, create a restricted key on the API keys page and choose "Authorizing agent access to your account".
- 4
In your node, open Stripe, then Settings, Payments, Web2. Paste the keys, save, and turn the element on in its Danger zone.
The element checks the secret key and the agent key with Stripe before saving them. The page shows which keys are set, never their values.
Connect your element
An element of your node takes a payment with one call to this element, using the node key it already has. It never holds Stripe keys of its own.
// In your element's server code: one call for a payment link
const res = await fetch(`http://127.0.0.1:${stripePort}/api/stripe-checkout`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-Node-Key': process.env.SETTINGS_SECRET },
body: JSON.stringify({
element: 'shop',
reference: 'order-7',
amount: 1500,
currency: 'usd',
description: 'One lesson',
successUrl: 'https://shop.example.com/en/paid',
cancelUrl: 'https://shop.example.com/en/cart',
}),
})
const { url } = await res.json() // send the buyer to urlOn its success page the element asks stripe-status whether the order was paid, and stripe-payments returns its whole journal. Your element's agent finds this element by its role in the node and takes the call examples from its card.
Under the hood
Part
What it does
stripe-checkout- Creates a Stripe Checkout session and returns the payment link
stripe-status- Returns paid, open or expired for a session
stripe-payments- Returns the journal of one element
stripe-webhook- Receives Stripe's events, checks the signature and writes one line per event, without buyer data
stripe-agent- Stripe's MCP server for this element's agent, opened by the agent key
use-stripe,stripe-best-practices- The agent's skills: this element's rules and Stripe's own advice
stripe23.0.0- Stripe's Node.js library inside the doors
- Tests
- 35 checks that run without network; webhook events are signed with Stripe's own library
- Programs on your computer
- None. The element needs no Stripe plugin and no Stripe CLI
Need more?
Subscriptions, refunds from your own interface, Stripe Connect or a card form of your own: ask this element's agent. It adds a new door with the same library and tests it, following Stripe's skill.
Your own builder comes with it
Every element of the node comes with its own Claude Code agent and can get its own Telegram bot. When something in this element should change, write to its bot from your phone, and the agent updates the logic or the design.
The agent works only in its element's folder and never reads the whole node, so each change costs fewer tokens. Your Claude Code subscription pays for it.
- The element's bot is connected in the core, on its «Telegram» page.
- The agent returns a commit; you look at it in «Preview» and accept it or turn it down.
- At the computer, the agent's terminal is in the core, in this element's «Build».
Open source
Built by Fractera for the Lagrix protocol and for any web2 project that needs fast development, few tokens and high load. Used with Claude Code. The code is open under the MIT license: Fractera/fractera-stripe-starter.
Questions and answers
- Does Fractera take a fee?
- No. The money goes to your Stripe account at Stripe's usual rates.
- Do card numbers pass through my computer?
- No. The buyer pays on Stripe's own Checkout page.
- Does every element need its own Stripe keys?
- No. The keys live only in this element; your element asks it for a payment link with the node key it already has.