Skip to main content

Sell software anywhere, skip the back office

Macropay is open-source billing infrastructure built around one idea: you should be able to charge money for what you build — a SaaS subscription, a one-time license, or an AI agent that bills by the outcome it delivers — without becoming a tax filer, a PCI auditor, or a disputes desk. We do that as your Merchant of Record (MoR). Macropay is the legal seller on your customer’s statement, which means we calculate and remit sales tax, VAT, and GST worldwide, absorb PCI scope, and own the chargeback process. You ship product; the compliance machinery is ours.

Merchant of Record

We sell as the merchant on record, then remit tax and VAT in every jurisdiction you sell into — so your global tax liability stays ours, not yours.

Built for AI, not just SaaS

Meter by tokens, by activity, or by verified outcome. Agents are first-class: attribute spend, certify ROI, and track margin per agent.

What you stop worrying about

The problem: A single global sale can trigger VAT, GST, or sales-tax obligations across dozens of jurisdictions, each with its own rate, threshold, and filing cadence. Most teams either gamble on non-compliance or wall themselves off from international customers.With Macropay: As your Merchant of Record we are the legal seller, so we calculate, collect, and remit the tax. Your liability is capped at the relationship with us — see supported countries and tax handling.
The problem: Subscriptions, proration, dunning, customer portals, invoices, refunds — each is weeks of work and a permanent maintenance tax on your team.With Macropay: A complete billing API ships on day one. Subscription lifecycle, failed-payment recovery, and a self-serve customer portal are already wired up. Drop in an SDK and start charging.
The problem: Emailing license keys, sending Discord invites, and adding people to private repos by hand breaks the moment you have real volume.With Macropay: Entitlements fire automatically on purchase — license keys, file downloads, GitHub repo access, Discord roles, prepaid credits, and more. Customers are provisioned the instant a payment clears.
The problem: AI products don’t fit flat subscriptions. You pay providers per token, and your customers expect to pay for what they actually use — or for the result they actually got.With Macropay: Send usage events to the meter and credits primitives, route model calls through our OpenAI-compatible AI proxy to capture token cost automatically, and bill agents on usage, activity, or outcome. More on this below.

What’s in the platform

Products: one model for everything you sell

In Macropay, everything you sell is a product — whether it’s billed once or recurring. The API and data model stay the same; only the pricing and billing logic differ.

One-time

Templates, courses, perpetual licenses, lifetime deals — paid for once, with instant fulfillment.

Subscriptions

Recurring billing with automatic renewals, proration, and dunning for failed payments.

Flexible pricing

Fixed, free, pay-what-you-want, seat-based, or usage-based (metered) — mix and match per product.

Usage-based & AI billing

This is where Macropay goes beyond a typical payment processor. Charge for consumption, activity, or — for AI agents — the value actually delivered.

Metered billing

Ingest events, aggregate them into meters, and attach a metered price. Sell prepaid credits or grant them, with stream, S3, delta-time, or LLM ingestion strategies.

AI proxy

Point your model calls at our OpenAI-compatible endpoint (POST /ai/v1/chat/completions). Macropay captures the token cost of every request automatically — no manual metering code.

Agent billing

Agents are first-class. The Signals API (POST /v1/signals) ingests activity and outcome signals attributed to a specific agent, so you can bill on results, not just minutes.

Value receipts & margin

Value receipts certify ROI — time saved, revenue generated, cost avoided. Agentic margin compares billed revenue against AI cost (COGS) per agent, so you always know which agents are profitable.
Outcome-based pricing is the cleanest way to monetize an agent: route inference through /ai/v1 to track COGS, then post the result to /v1/signals to bill for the win. The margin between the two is your agentic margin.

A checkout your customers trust

Card details are tokenized in our PCI DSS Level 1 compliant vault, so sensitive data never touches your servers. Pick the integration depth that fits:

Share a link

No code required. Generate a checkout link in the dashboard and drop it into an email, a post, or a button.

Embed on your site

Keep customers on your domain with a themeable, localized embedded checkout.

Drive it with the API

Create checkout sessions programmatically for fully custom purchase flows.

Entitlements that fulfill themselves

Configure a benefit once and Macropay grants it on every qualifying purchase — no scripts, no support tickets.

License keys

Generate and deliver keys automatically, with custom formats and activation limits.

File downloads

Securely serve digital assets up to 10GB, with per-customer download tracking.

GitHub access

Auto-invite buyers to private repositories and revoke access when a subscription ends.

Discord access

Assign roles and send server invites the moment someone joins a paid tier.

Get to your first payment

1

Create your organization

Sign up with GitHub, Google, or email, then create an organization to hold your products, customers, and payouts.
2

Define a product

Create your first product in a couple of minutes:
  • Decide one-time or subscription
  • Set the pricing model — fixed, free, pay-what-you-want, seat-based, or metered
  • Attach the entitlements that should fulfill on purchase
3

Pick an integration path

Fastest way to take money today:
  • Create a checkout link in the dashboard
  • Share it anywhere — email, social, a landing page
  • Payments start flowing immediately
4

Listen for events with webhooks

Keep your own database in sync as things happen:
  • Register webhook endpoints in the dashboard
  • React to orders, subscription changes, and customer updates
  • Verify deliveries with Standard Webhooks signatures and test them locally
Webhooks make your system the source of truth for fulfillment beyond the built-in entitlements.

Integrate with your stack

Framework adapters

Drop-in adapters wire Macropay into your framework’s routing and auth so you write less glue code.

Next.js

Full-stack React with App Router support.

BetterAuth

Billing tied directly into your authentication and authorization layer.

Laravel

First-class PHP support for Laravel applications.

Deno

A modern, secure TypeScript runtime.

Nuxt

Vue.js framework

Remix

React framework

Fastify

Fast Node.js

Hono

Cloudflare Workers

Tanstack Start

Full-stack React

Elysia

Bun framework

Astro

Static site generator

Express

Flexible Node.js framework

SvelteKit

Full-stack framework

Native SDKs & tooling

TypeScript

Web and Node.js applications

Python

Django, Flask, FastAPI

Go

Go web services

PHP

WordPress, Laravel, plain PHP
Authenticate with OAuth2 or organization access tokens (OAT), test everything in the sandbox before going live, and connect agent tooling through our MCP server.
Here’s a metered AI charge, end to end — capture model cost through the proxy, then bill the customer for usage:

Who it’s for

Ship weeks sooner

Skip the billing build entirely and spend your time on the product.

Sell globally on day one

We handle tax and compliance everywhere, so geography stops being a blocker.

Hands-off fulfillment

Keys, downloads, and access grants are delivered automatically.

Pay as you earn

No setup fees and no monthly minimums — costs scale with revenue.

Pricing

One transparent rate. We only make money when you get paid.

4.5% + 50¢

Per successful transactionNo monthly fees, no setup costs, no minimums.

Free payouts

ACH (US) and SEPA (EU)SWIFT is passed through at cost. No payout markup.
A few situational add-ons: +1.5% on international (non-US) cards, +0.5% on subscriptions, and $30 per dispute regardless of outcome. Full breakdown on the fees page.

Start building

Create an account

Free, no card requiredYou’ll be set up in under two minutes.

Follow a guide

Framework tutorialsStep-by-step integration walkthroughs.

Browse the API

Full referenceEndpoints, schemas, and live examples.

Join the community

Get help fastTalk to the team and other builders on Discord.