stack/apps/backend/src/app/api/latest
Mantra 3a5153f4db
feat(payments): collect 0.9% platform fee on every stripe money movement (#1378)
## Summary

Charges the platform 0.9% on both legs of each transaction on
non-internal projects.

- **Charge leg** — rides along via Stripe's native
\`application_fee_amount\` / \`application_fee_percent\` params on the
PaymentIntent / Subscription.
- **Refund leg** — Stripe's default reverses our charge-leg fee on
refund, netting us zero. We disable that with \`refund_application_fee:
false\`

## Refs
-
https://docs.stripe.com/api/subscriptions/create#create_subscription-application_fee_percent
-
https://docs.stripe.com/api/payment_intents/object#payment_intent_object-application_fee_amount

---------

Co-authored-by: nams1570 <amanganapathy@gmail.com>
2026-05-05 09:22:53 -07:00
..
(api-keys) Upgrade Prisma to v7 (#1064) 2025-12-26 08:13:34 -08:00
ai/query/[mode] Dashboard: DataGrid refactor + layout (stacked on overview-revamp) (#1338) 2026-04-27 13:50:24 -07:00
analytics/events/batch [Refactor][Feat] Implement Plan Limits for Hard-and-Soft Item Caps (#1215) 2026-05-04 18:25:13 -07:00
auth fix connected accounts tokens (#1358) 2026-04-20 19:33:47 -07:00
check-feature-support fix types 2026-01-19 16:51:49 -08:00
check-version update version check alerter 2025-12-11 14:29:44 -08:00
connected-accounts fix connected accounts tokens (#1358) 2026-04-20 19:33:47 -07:00
contact-channels Upgrade ESLint 2026-02-27 10:58:28 -08:00
data-vault/stores/[id] encrypt neon connection strings, update connections route (#879) 2025-09-09 21:35:07 +00:00
emails stack auth preview mode (#1307) 2026-04-08 16:57:42 -07:00
integrations [Refactor][Feat] Implement Plan Limits for Hard-and-Soft Item Caps (#1215) 2026-05-04 18:25:13 -07:00
internal feat(payments): collect 0.9% platform fee on every stripe money movement (#1378) 2026-05-05 09:22:53 -07:00
migration-tests Move /api/v1 to /api/latest 2025-02-05 17:24:43 -08:00
oauth-providers Emit delete tombstone when provider_account_id changes (#1320) 2026-04-10 18:46:04 -07:00
payments feat(payments): collect 0.9% platform fee on every stripe money movement (#1378) 2026-05-05 09:22:53 -07:00
project-permission-definitions Auto migration (#526) 2025-07-24 02:38:37 +02:00
project-permissions Backend fallback (cloud run) (#1306) 2026-04-11 00:57:37 +00:00
projects Onboarding app & restricted users (#1069) 2026-01-11 17:22:14 -08:00
projects-anonymous-users/[project_id]/.well-known Improved anonymous users (#857) 2025-08-24 11:36:01 -07:00
session-replays/batch [Refactor][Feat] Implement Plan Limits for Hard-and-Soft Item Caps (#1215) 2026-05-04 18:25:13 -07:00
team-invitations fix team invitation email check + verification code TOCTOU (#1365) 2026-05-04 17:13:03 -07:00
team-member-profiles clickhouse new syncs and verify-data (#1304) 2026-04-08 14:43:22 -07:00
team-memberships Backend fallback (cloud run) (#1306) 2026-04-11 00:57:37 +00:00
team-permission-definitions Auto migration (#526) 2025-07-24 02:38:37 +02:00
team-permissions Backend fallback (cloud run) (#1306) 2026-04-11 00:57:37 +00:00
teams [Refactor][Feat] Implement Plan Limits for Hard-and-Soft Item Caps (#1215) 2026-05-04 18:25:13 -07:00
users [Refactor][Feat] Implement Plan Limits for Hard-and-Soft Item Caps (#1215) 2026-05-04 18:25:13 -07:00
webhooks/svix-token stack auth preview mode (#1307) 2026-04-08 16:57:42 -07:00
beta-changes.txt Move /api/v1 to /api/latest 2025-02-05 17:24:43 -08:00
changes.txt Move /api/v1 to /api/latest 2025-02-05 17:24:43 -08:00
route.ts Endpoints branching (#659) 2025-04-30 15:39:47 -07:00