- Creem, Dodo Payments and Iyzico as invoice payment providers: hosted
checkout via payment.requires_action, refunds, signed webhooks at
/webhooks/{creem,dodo,iyzico}/:org with replay protection; GraphQL
mutations + console settings forms (migration 0043)
- Free customer billing portal at /portal/:token: signed expiring,
revocable links (POST/DELETE customers/:id/portal_sessions), invoices
with PDF + pay, usage, wallet top-up, cancel, payment method update;
strict CSP/no-cache; console share/revoke buttons (migration 0045)
- Real-time wallets backed by Mint holds: per-event pricing under the
plan charge model, reject/flag policies (503 fail-closed when Mint is
down), capture at finalize and release on void (migration 0044)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
57 lines
1.4 KiB
TOML
57 lines
1.4 KiB
TOML
[package]
|
|
name = "rago-api"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
description = "Rago REST API (axum) — Lago v1/v2 endpoints"
|
|
|
|
[features]
|
|
default = []
|
|
# Live transports: real reqwest HTTP + SMTP email (owner-gated; needs keys).
|
|
live = ["rago-integrations/live", "rago-mail/live", "rago-jobs/live"]
|
|
# Opt-in Postgres-backed #[sqlx::test] suites (need DATABASE_URL; see README
|
|
# "Running the tests"). Plain `cargo test` skips them.
|
|
pg-tests = []
|
|
|
|
[lib]
|
|
name = "rago_api"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "rago-api"
|
|
path = "src/main.rs"
|
|
|
|
# Single supervising binary: boots the API + the scheduler/worker daemon.
|
|
[[bin]]
|
|
name = "rago-server"
|
|
path = "src/bin/rago_server.rs"
|
|
|
|
[dependencies]
|
|
rago-core.workspace = true
|
|
rago-billing.workspace = true
|
|
rago-db.workspace = true
|
|
rago-graphql.workspace = true
|
|
rago-integrations.workspace = true
|
|
rago-documents.workspace = true
|
|
rago-mail.workspace = true
|
|
rago-jobs.workspace = true
|
|
async-graphql.workspace = true
|
|
async-graphql-axum.workspace = true
|
|
axum.workspace = true
|
|
tokio.workspace = true
|
|
tower.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
rust_decimal.workspace = true
|
|
uuid.workspace = true
|
|
chrono.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
hmac.workspace = true
|
|
sha2.workspace = true
|
|
base64.workspace = true
|
|
|
|
[dev-dependencies]
|
|
sqlx.workspace = true
|