Payments
Stripe integration: subscriptions, marketplaces and usage-based billing
Whether it's a SaaS subscription, billing by API calls or a marketplace with payouts to partners: we connect Stripe so that plans, invoices and webhooks work together reliably and your team can change prices without touching code.
Stripe is a payment service with an extensive API for one-time payments, subscriptions, usage-based billing and marketplaces via Stripe Connect.
Data flow
How Stripe fits into your processes
- Your shop
- Stripe Checkout
- Webhook
- Your software
- Accounting
Use cases
What we build with Stripe
Subscriptions
Self-service plans, trials, upgrades and cancellations.
Usage-based billing
Count API calls or usage and bill automatically.
Stripe Connect
Distribute payments to partner businesses or hosts.
Customer portal
Invoices, payment methods and subscription in one portal.
Typical projects
Why companies bring us in
- 01
Usage-based billing
- Starting point
- A company data API needs to bill customers based on their actual usage.
- Solution
- Usage-based subscriptions record usage and automatically create invoices in Stripe.
- Result
- Customers pay based on usage, without anyone creating invoices by hand.
- 02
Pricing plans for a SaaS
- Starting point
- An error monitoring service from Germany needs plans with self-service upgrades and cancellation.
- Solution
- Plans, checkout and customer portal run on Stripe; webhooks control permissions in the application.
- Result
- Customers manage their own subscriptions, and your team changes prices without code.
- 03
Payouts to partners
- Starting point
- A cleaning platform needs to distribute payments to many partner businesses.
- Solution
- Stripe Connect accepts payments and pays out the shares to partner businesses.
- Result
- Partners get paid automatically, and the platform keeps track of everything.
From practice
Stripe in our projects
- Usage-based subscriptions for a company data API.
- Pricing plans for an error monitoring service from Germany.
- Payments and payouts to partner businesses of a cleaning platform via Stripe Connect.
Approach
How we introduce Stripe
- 1
Pricing model
Define plans, usage, taxes and trial periods.
- 2
Integration
Connect checkout, webhooks and permissions in the application.
- 3
Testing
Run through payment flows in test mode, including error cases.
- 4
Go-live
Switchover, webhook monitoring and reporting.
Result
What you get from us
- Pricing model with products and plans in Stripe
- Checkout and customer portal in your application
- Webhook processing with signature verification and retries
- Sync of subscription status and permissions in your software
- Tested flows in test mode, including error cases
- Documentation for go-live and operations
import express from "express";
import Stripe from "stripe";
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);
const app = express();
app.post("/webhooks/stripe", express.raw({ type: "application/json" }), (req, res) => {
let event;
try {
event = stripe.webhooks.constructEvent(req.body, req.headers["stripe-signature"], process.env.STRIPE_WEBHOOK_SECRET);
} catch (err) {
return res.status(400).send("Ungültige Signatur");
}
if (event.type === "invoice.paid") { /* Zugang freischalten, event.id nur einmal verarbeiten */ }
res.json({ received: true });
});
Quality
What we watch for with Stripe
- 1
Verify the webhook signature
Every webhook is verified with the signing secret before it triggers anything.
- 2
Idempotent processing
Stripe can send events more than once, so we process each event only once.
- 3
Calculate taxes correctly
We set up VAT and reverse charge to match your markets.
- 4
SCA and 3-D Secure
Payments that require strong customer authentication go through without interruption.
- 5
Use test mode
We run through all flows, including declined cards, in test mode before going live.
Comparison
Stripe or Mollie?
Stripe
- Subscriptions
- Extensive subscription and pricing logic
- Usage-based billing
- Built in via Metered Billing
- Marketplaces
- Stripe Connect for partner payouts
- European payment methods
- Many payment methods available
- Getting started
- Very flexible, but more configuration
Mollie
- Subscriptions
- Recurring payments via mandates
- Usage-based billing
- Must be implemented in the application
- Marketplaces
- Mollie Connect for platforms
- European payment methods
- Strong focus on local European payment methods
- Getting started
- Lean API, quickly connected
For complex subscriptions and marketplaces, Stripe is often a good fit; for European payment methods with simple integration, Mollie often is.
Related
Often combined with
Stripe
Common questions
Tap a question.
