Pricing structure
Stripe offers “pay-as-you-go” pricing based on successful card charges processed via its platform. Stripe’s API includes many payment options. Rates and fixed fees per transaction vary depending on the payment method.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 |
Get started
1
Set up Lago
2
Create a billable metric
Create a billable metric to track transaction usage for each payment method.Refer to the API reference and guide on filters to learn more.
- Set the
aggregation_type
tosum_agg
to sum transaction amounts - Set the
field_name
toamount
to track transaction values - Add a unique
code
for your billable metric - Configure
filters
to distinguish between payment types
3
Create a plan
Create a plan with percentage-based charges that are paid in advance.Refer to the API reference and guide on percentage charges to learn more.
- Set the
amount_cents
to0
since there is no subscription fee - Configure
charge_model
topercentage
for percentage-based pricing - Enable
pay_in_advance
for instant charging - Set
invoiceable
tofalse
to avoid creating invoices for the charges - Set
charges
with different rates for online vs in-person payments
4
Create a customer
5
Create a subscription
Create a subscription for the customer with the plan’s Refer to the API reference to create a subscription.Refer to API reference and guide on assigning plans in the documentation.
code
.6
Ingest transactions via events
Send transaction events to Lago for instant processing and charging.Refer to the API reference to create an event.
- Set the
code
to match your billable metric code - Use
external_customer_id
to identify the customer - Include
amount
in properties for the transaction value - Add
type
property to specify online or in-person payment
7
Estimate fees for future transactions
Calculate transaction fees before processing to show users expected costs.Refer to the API reference to estimate fees.
- Use
external_subscription_id
to identify the subscription - Set the
code
to match your billable metric code - Include
amount
for the transaction value to estimate - Add
type
to get accurate rates for payment method