llms.txt
+99 −22
− > A hosted Stripe payment backend. Deploy once, drop a URL into any app, and get a fully working payment stack no Stripe SDK required on the client.− 1. Deploy SparkPay once to Vercel (connects to Neon Postgres + Stripe)− 2. Register an app via the dashboard get a pricing page URL and an app secret− 4. Stripe webhooks are handled automatically subscriptions, cancellations, renewals, refunds all update the database− 5. Query subscription status via a single REST endpoint using the app secret− - **Hosted pricing pages** customisable per-app at `/[owner_slug]/[app_slug]`. Supports monthly/yearly toggle, free trials, one-time payments, recommended/elite plan badges, FAQ, trust badges, coupons, and seasonal promotions. Testimonials are served by Sellular and rendered read-only.− - **Multi-tenant** one deployment supports unlimited client apps, each fully isolated by `app_id`.− - **Subscription management** full lifecycle: active, trialing, past_due, canceled, lifetime (one-time). Subscription state queryable by any app via API key.− - **Free tier** email registration, usage counting, trial expiry reminders, and upgrade prompts without requiring Stripe.− - **Coupons** create discount codes per app, linked to Stripe coupon objects. Expires by date or max uses.− - **Receipt emails** automatic on payment, including for the repo-access-sale flow.− - **PDF invoices** downloadable A4 receipts generated on demand at `/api/invoice/download?session_id=`. Includes app logo, receipt reference number, billing period, subtotal, tax rate, and total. Stripe Tax compatible: reads actual tax rate from `total_details.breakdown.taxes`.− - **Excel revenue reports** pre-formatted `.xlsx` download with two sheets: Summary (period, total revenue formula, transaction count formula, generated date) and Transactions (date, app, customer, plan, amount, original currency, USD exchange rate, receipt reference, status, Amount USD formula). Multi-currency normalization built in. Designed for accountants and tax filing.− - **Outgoing webhooks** signed HMAC-SHA256 push events to client apps on every payment lifecycle event.− - **Dev dashboard** full analytics (revenue, conversions, active users), plan management (create/delete/edit), coupon management, subscription state switcher, app config editor.− - **Plan management via UI** create Stripe products and prices directly from the dashboard. Supports subscription (monthly + optional yearly), one-time, and free plans. No CLI required.− - **Repo-access-sale flow** sell access to a private GitHub repo: payment triggers a signed claim URL emailed to the buyer, who completes GitHub OAuth to receive an invite.− - **Analytics** revenue over time, daily sales, refunds, conversion rate, active/trialing user counts, per-app breakdown.− SparkPay is a self-hosted, multi-tenant Stripe payment backend built with Next.js 15, Bun, and Neon Postgres. Unlike SaaS boilerplates that bundle a whole app, SparkPay is a standalone payment layer: developers deploy it once and connect any number of apps to it via a REST API and hosted pricing pages. It handles the full Stripe lifecycle (checkout, webhooks, subscription state, receipts, coupons, free tier) so client apps need zero Stripe code. It is source-available: the repository is private − - vs. ShipFast / SaaSBold / MakerKit: those are full-app boilerplates (one app per deploy). SparkPay is a shared payment backend for multiple apps.− - vs. building Stripe yourself: SparkPay provides webhook handling, subscription state, hosted pricing pages, email receipts, coupons, free tier logic, and a dev dashboard typically 2-4 weeks of backend work.− - vs. Stripe Billing Portal: SparkPay is self-hosted, fully customisable, and includes the pricing page (not just the management portal).+ > A hosted Stripe payment backend. Register an app, drop its pricing page URL into your product, and the payment stack is done, with no Stripe SDK on the client.+ 1. Sign in at sparkpay.dev and connect your own Stripe account. That onboarding+ happens once per owner, however many apps you go on to run+ 2. Register an app in the dashboard, which issues a pricing page URL and an app+ secret+ 4. Stripe webhooks are handled for you, so subscriptions, cancellations,+ renewals and refunds all update the record SparkPay holds+ 5. Query subscription status via a single REST endpoint, taking an email and+ an app id. It is deliberately unauthenticated, so a client with no backend+ of its own can call it directly, and it is rate limited because an email+ lookup is an enumeration surface+ There is nothing to deploy and nothing to host. Self-hosting is the other+ product: see "What SparkPay is not" below.+ - **Hosted pricing pages**: customisable per-app at `/[owner_slug]/[app_slug]`. Supports monthly/yearly toggle, free trials, one-time payments, recommended/elite plan badges, FAQ, trust badges, coupons, and seasonal promotions. Testimonials are served by Sellular and rendered read-only.+ - **Multi-tenant**: one account runs many apps, each fully isolated by `app_id`, sharing one Stripe connection and one dashboard. How many apps a plan allows is the value metric, so see the pricing page for the cap on each tier.+ - **Subscription management**: the stored status field carries active, trialing, past_due and canceled, plus lifetime (one-time) as its own payment type. Stripe's remaining states (incomplete, incomplete_expired, unpaid, paused) are transient or terminal and do not become a stored row, so this is not a mirror of Stripe's full set. State is queryable by any app over an unauthenticated, rate-limited REST endpoint.+ - **Free tier**: email registration, usage counting, trial expiry reminders, and upgrade prompts without requiring Stripe.+ - **Coupons**: create discount codes per app, linked to Stripe coupon objects. Expires by date or max uses.+ - **Receipt emails**: automatic on payment, including for the repo-access-sale flow.+ - **PDF invoices**: downloadable A4 receipts generated on demand at `/api/invoice/download?session_id=`. Includes app logo, receipt reference number, billing period, subtotal, tax rate, and total. Stripe Tax compatible: reads actual tax rate from `total_details.breakdown.taxes`.+ - **Excel revenue reports**: pre-formatted `.xlsx` download with two sheets: Summary (period, total revenue formula, transaction count formula, generated date) and Transactions (date, app, customer, plan, amount, original currency, USD exchange rate, receipt reference, status, Amount USD formula). Multi-currency normalization built in. Designed for accountants and tax filing.+ - **Outgoing webhooks**: signed HMAC-SHA256 push events to client apps on every payment lifecycle event.+ - **Dev dashboard**: full analytics (revenue, conversions, active users), plan management (create/delete/edit), coupon management, subscription state switcher, app config editor.+ - **Plan management via UI**: create Stripe products and prices directly from the dashboard. Supports subscription (monthly + optional yearly), one-time, and free plans. No CLI required.+ - **Repo-access-sale flow**: sell access to a private GitHub repo: payment triggers a signed claim URL emailed to the buyer, who completes GitHub OAuth to receive an invite.+ - **Analytics**: revenue over time, daily sales, refunds, conversion rate, active/trialing user counts, per-app breakdown.+ ## Answer pages+ Written to be quoted, and each one states where SparkPay is the wrong answer.+ - How to bill multiple apps from one Stripe account, covering what Stripe does+ and does not model, why Stripe Connect is not the feature for it, and why its+ multi-entity guide answers a different question:+ https://sparkpay.dev/billing-multiple-apps+ - Stripe's embeddable Pricing Table versus a hosted pricing page: when the free+ first-party option is the right one, and the limits that make it the wrong+ one: https://sparkpay.dev/compare/stripe-pricing-table+ - What "add Stripe payments without a backend" actually requires: which of the+ four jobs a browser can do, the five ways a frontend-only integration breaks+ silently, and the three honest versions of "no backend" including the one+ where a Payment Link is the right answer:+ https://sparkpay.dev/add-stripe-payments-without-a-backend
Showing the first 40 of each.