Guides / Payments
Smart Actions counts events in a rolling window. If you log a "Payment received" event for every payment, Smart Actions can fire when that count crosses a threshold — a payment count milestone without tracking cumulative sums.
await logit.now("payments", {
event: "Payment received",
description: `${customerEmail} — ${(amount / 100).toFixed(2)} ${currency.toUpperCase()}`,
icon: "💰",
notify: true,
tags: { currency, plan },
metadata: { amount, currency, customerId, plan },
});
| Rule name | Threshold | Window | Cooldown |
|---|---|---|---|
| 10 payments today | 10 | 24 hours | 24 hours |
| 50 payments today | 50 | 24 hours | 24 hours |
| 100 payments today | 100 | 24 hours | 24 hours |
Each rule fires once per day when the payment count hits that milestone.
Configure the milestone rule to also post a Slack message to your #wins channel using the Webhook action type so the whole team sees it.
If your average order value is $49, 10 payments ≈ $490/day. Adjust thresholds to match your typical deal size so milestones represent real business moments.
Try LogIt free
7-day trial. No credit card required.