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_typetosum_aggto sum transaction amounts - Set the
field_nametoamountto track transaction values - Add a unique
codefor your billable metric - Configure
filtersto 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_centsto0since there is no subscription fee - Configure
charge_modeltopercentagefor percentage-based pricing - Enable
pay_in_advancefor instant charging - Set
invoiceabletofalseto avoid creating invoices for the charges - Set
chargeswith 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
codeto match your billable metric code - Use
external_customer_idto identify the customer - Include
amountin properties for the transaction value - Add
typeproperty 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_idto identify the subscription - Set the
codeto match your billable metric code - Include
amountfor the transaction value to estimate - Add
typeto get accurate rates for payment method