You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6eb235f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .claude-plugin/marketplace.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
{
21
21
"name": "agentic-engineering",
22
22
"description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md",
Copy file name to clipboardExpand all lines: plugins/agentic-engineering/.claude-plugin/plugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "agentic-engineering",
3
3
"description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md",
Copy file name to clipboardExpand all lines: plugins/agentic-engineering/.codex-plugin/plugin.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "agentic-engineering",
3
3
"description": "The autonomous engineering system for repository portfolios and everything its agents need — engineer, read-only surveyor, meta-engineer and Flux troubleshooter agents; portfolio, product, spend and improvement workflows; GitHub, CodeRabbit review, security, library documentation, Go, Kubernetes, Flux, Talos, SvelteKit frontend, Stripe payments, engineering-practice, design, product-management, marketing, finance and productivity skills; and the MCP servers they use; configured by the consumer AGENTS.md",
Latest Stripe API version: **2026-10-28.endive**. Always use the latest API version and SDK unless the user specifies otherwise.
10
+
Latest Stripe API version: **2026-11-18.endive**. Always use the latest API version and SDK unless the user specifies otherwise.
11
11
12
12
Development and testing environment default: For new integration development, use separate [sandboxes](https://docs.stripe.com/sandboxes.md) instead of the account’s shared test mode sandbox. Sandboxes isolate settings and test data from live mode. Use separate sandboxes for local development and CI. When stronger isolation is useful, dedicate sandboxes to development teams or testing scenarios. Use the shared test mode sandbox only for an existing integration that depends on it or when a required feature doesn’t support general sandboxes.
13
13
14
14
Latest SDK versions:
15
15
16
16
| Language | Latest version |
17
17
| --- | --- |
18
-
| Ruby |20.0.0 |
19
-
| Python |16.0.0 |
20
-
| Node.js | 23.0.0 |
21
-
| PHP |22.0.0 |
22
-
| Java | 34.0.0 |
23
-
| Go | 87.0.0 |
24
-
| .NET | 53.0.0 |
18
+
| Ruby |21.1.0 |
19
+
| Python |17.1.0 |
20
+
| Node.js | 23.2.0 |
21
+
| PHP |23.1.0 |
22
+
| Java | 34.2.0 |
23
+
| Go | 87.2.0 |
24
+
| .NET | 53.2.0 |
25
25
26
26
If you don’t have a Stripe account, you can use the CLI to generate a sandbox test account with no registration required. [Install the Stripe CLI](https://docs.stripe.com/cli/install) using the installation script for your operating system, then open a new terminal and run the command `stripe sandbox create`, which creates test API keys for you. When you recommend this, explain that [a sandbox is a Stripe test environment](https://docs.stripe.com/sandboxes.md).
27
27
@@ -45,7 +45,7 @@ API key default: Always recommend a [restricted API key (RAK)](https://docs.stri
Read the relevant reference file before answering any integration question or writing code.
48
+
Read the relevant reference file before answering any integration question or writing code. Reference paths are relative to this skill’s directory, not to the docs.stripe.com root. If you don’t have the skill files locally, append the path to **https://docs.stripe.com/.well-known/skills/stripe-best-practices/**. For example, fetch **https://docs.stripe.com/.well-known/skills/stripe-best-practices/references/connect.md**.
Copy file name to clipboardExpand all lines: plugins/agentic-engineering/skills/stripe-best-practices/references/connect.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Critical rules (never violate)
4
4
5
-
1.**ALWAYS use Accounts v2 API** (`POST /v2/core/accounts`). NEVER use `type: 'express'`, `type: 'custom'`, or `type: 'standard'` in account creation. NEVER use `stripe.accounts.create({ type: ... })`. These are deprecated v1 patterns.
5
+
1.**ALWAYS use Accounts v2 API** (`POST /v2/core/accounts`). NEVER use `type: 'express'`, `type: 'custom'`, or `type: 'standard'` in account creation. NEVER use `stripe.accounts.create({ type: ... })`. These are deprecated v1 patterns. For a live platform that already has v1 connected accounts, see [Existing v1 platforms](#existing-platforms) for how to adopt v2 incrementally.
6
6
2.**ALWAYS check v2 capability status** before processing. See “Go-live readiness” section below.
7
7
3.**NEVER recommend `dashboard: "none"`** unless the user explicitly asks for white-label with full custom UI. Default to `express` for marketplaces and `full` for SaaS. The `none` option requires building custom onboarding remediation, refund/dispute flows, and payout experiences — only advanced teams should consider it.
8
8
4.**ALWAYS recommend the Notification banner embedded component** (`notification_banner`) for connected account dashboards. It keeps accounts healthy as requirements evolve.
@@ -40,7 +40,7 @@ Configure connected accounts using three independent dimensions:
40
40
-**SaaS platform** → `dashboard: "full"` — full Stripe Dashboard for independent businesses
41
41
-**White-label (advanced only)** → `dashboard: "none"` — platform must build ALL UX including onboarding remediation, disputes, payouts
42
42
43
-
If dashboard is `express`, provide access through [login links](https://docs.stripe.com/api/accounts/login_link/create.md). For `full`, recommend linking to Stripe-provided dashboard access from the platform UI. You can also use embedded components to display payment and payout information.
43
+
If dashboard is `express`, provide access through Dashboard Account Links: create one with the [Account Links v2 API](https://docs.stripe.com/api/v2/core/account-links/create.md), `use_case.type` set to `account_dashboard`, and `use_case.account_dashboard.refresh_url` set to a URL that creates a new link. Generate a new link for each Open Dashboard action. For `full`, recommend linking to Stripe-provided dashboard access from the platform UI, or, to send a `full` dashboard user to their durable dashboard link, you can also create a Dashboard Account Link. These links don’t bypass Stripe authentication. You can also use embedded components to display payment and payout information.
44
44
45
45
### SaaS vs. Marketplace responsibility defaults
46
46
@@ -52,6 +52,8 @@ If dashboard is `express`, provide access through [login links](https://docs.str
52
52
- Charge pattern: Direct charges (connected account is merchant of record)
**Customer-only accounts**: Setting `dashboard` or `defaults.responsibilities` on an account with only the Customer configuration fails with `unsupported_field_for_configs`. If a later update request adds `configuration.merchant` or requests `stripe_balance.stripe_transfers` for `configuration.recipient`, that request must include `dashboard` and `defaults.responsibilities`. You can’t change them after you set them.
56
+
55
57
**Marketplace (destination charges):**
56
58
57
59
-`dashboard: "express"`
@@ -154,6 +156,16 @@ Default to embedded onboarding (account_onboarding component or account links).
154
156
-`dashboard: "full"` with destination or separate charges has limited functionality; prefer `dashboard: "express"` for those charge patterns
155
157
- Express + destination/separate requires platform-run webhook recovery for disputes and transfer reversals
156
158
159
+
## Existing v1 platforms
160
+
161
+
The v2 rules in this reference apply to new integrations and new connected accounts. For a live platform whose connected accounts were created with v1 account types (`type: 'standard'`, `'express'`, or `'custom'`):
162
+
163
+
-**Don’t recreate accounts**: Accounts v2 endpoints work with existing v1 accounts without changing them, and v1 endpoints work with accounts created through v2. A newly created v1 account might take up to 10 minutes before it’s available to v2 endpoints. It sends a `v2.core.account.created` event when it’s ready.
164
+
-**Migrate in stages**: Use this order: listen for v2 (thin) events on a new endpoint, then move `create` calls to `/v2/core/accounts`, then `update` calls, then `retrieve` calls. Both API versions work during the transition, so you don’t need to switch everything at once. Follow [Use the Accounts v2 API in your existing integration](https://docs.stripe.com/connect/accounts-v2/migrate-integration.md).
165
+
-**Keep charge flows as they are**: Destination charges and direct charges reference the connected account by the same `acct_` ID in either API version. On subscriptions, `application_fee_percent` and `transfer_data[destination]` don’t change. The customer reference changes only when you bill a customer-configured account: pass it as `customer_account` instead of `customer`. See [Create subscriptions with Stripe Billing](https://docs.stripe.com/connect/subscriptions.md).
166
+
-**Some features still require v1**: These include OAuth, the recipient service agreement, and the `treasury` and `card_issuing_*` capabilities. See the limitations section of the migration guide.
167
+
-**Staying on v1 is acceptable**: If the platform doesn’t need v2 features, such as customer-configured accounts or paying the platform from a connected account’s Stripe balance, it can keep its v1 integration. Don’t recommend a rewrite only to replace `type`.
168
+
157
169
## Traps to avoid
158
170
159
171
- Using legacy account types (`type: 'standard'`, `type: 'express'`, `type: 'custom'`) — use v2 dimensions instead
@@ -171,3 +183,4 @@ Default to embedded onboarding (account_onboarding component or account links).
-[Design an integration](https://docs.stripe.com/connect/design-an-integration.md) — Detailed risk and responsibility decisions.
173
185
-[Connected account configuration (v2)](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration.md) — Account setup reference.
186
+
-[Use the Accounts v2 API in your existing integration](https://docs.stripe.com/connect/accounts-v2/migrate-integration.md) — Incremental migration for platforms with v1 connected accounts.
0 commit comments