Replicate Stripe’s per-transaction pricing model with Lago.
Payment Method | Percentage Charge (based on transaction amount) | Fixed Fee (per transaction) |
---|---|---|
Card payments (online) | 2.9% | $0.30 |
Card payments (in-person) | 2.7% | $0.05 |
Set up Lago
Create a billable metric
aggregation_type
to sum_agg
to sum transaction amountsfield_name
to amount
to track transaction valuescode
for your billable metricfilters
to distinguish between payment typesCreate a plan
amount_cents
to 0
since there is no subscription feecharge_model
to percentage
for percentage-based pricingpay_in_advance
for instant charginginvoiceable
to false
to avoid creating invoices for the chargescharges
with different rates for online vs in-person paymentsCreate a customer
Create a subscription
code
.Ingest transactions via events
code
to match your billable metric codeexternal_customer_id
to identify the customeramount
in properties for the transaction valuetype
property to specify online or in-person paymentEstimate fees for future transactions
external_subscription_id
to identify the subscriptioncode
to match your billable metric codeamount
for the transaction value to estimatetype
to get accurate rates for payment method