Inside BalancYZ

Deep dives into financial engineering, security, and developer infrastructure.

Engineering February 23, 2026

How We Handle Webhook Idempotency for Multi-Gateway Environments

One of the biggest challenges in building a balance system is ensuring that a single transaction is only ever processed once. Stripe, LemonSqueezy, and other providers often retry webhooks if they don't receive an immediate 200 OK.

In this article, we dive into how BalancYZ uses a combination of Redis-based locks and database-level transaction uniqueness constraints to ensure that no matter how many times a payment event hits our servers, your client's balance only increases exactly once.

Read full engineering deep dive
Tutorial February 18, 2026

Building a Credit-Based SaaS in 15 Minutes

Why build a billing system from scratch? We'll show you how to take a fresh Laravel or Next.js application and turn it into a pay-as-you-go platform using BalancYZ as your primary ledger.

We'll walk through setting up your first Collection, generating a secret API token, and implementing a simple middleware in your application that checks the BalancYZ API before allowing access to premium features.

Start the tutorial