> ## Documentation Index
> Fetch the complete documentation index at: https://docs.macropay.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sell Digital Products Globally

> Ship software, courses, and downloads worldwide. We're the merchant of record — global tax, license keys, and file delivery are built in.

A digital product has no borders, but the paperwork behind selling one does. The moment your first customer checks out from Berlin, Toronto, or Sydney, you inherit a thicket of VAT thresholds, GST registrations, and sales-tax nexus rules — none of which has anything to do with the thing you built.

Macropay removes that layer entirely. As your **Merchant of Record (MoR)**, we become the legal seller of your product. We collect and remit tax in every jurisdiction, appear on the customer's statement, and absorb the compliance burden — so your tax liability stays bounded and your time goes back to the product. You set a price, generate a checkout, and start selling.

<Info>
  **Merchant of Record, in one line:** you sell the product, we sell it *to the customer of record*. Tax, invoicing, PCI scope, and chargebacks are ours to handle — at a single flat fee.
</Info>

## What you offload to us

<CardGroup cols={3}>
  <Card title="Worldwide tax" icon="building-columns">
    We calculate, collect, file, and remit VAT, GST, and sales tax across 200+ countries. You never register with a foreign tax authority.
  </Card>

  <Card title="Payments & FX" icon="credit-card">
    Cards, Apple Pay, Google Pay, and local methods — with currency conversion handled. Cards are tokenized in our PCI DSS Level 1 compliant vault.
  </Card>

  <Card title="Fulfillment" icon="box">
    License keys, file downloads, GitHub invites, and Discord roles are granted the instant a payment clears. No glue code.
  </Card>
</CardGroup>

## Fulfillment is built in, not bolted on

Most processors stop the moment money moves and leave you to wire up delivery yourself. Macropay treats fulfillment as part of the sale: attach **benefits** to a product once, and every future order grants and revokes them automatically.

### License keys

Issue a unique software key on every purchase, with support for custom formats, activation limits, and expiry.

```text theme={null}
Order paid → key minted → delivered by email + shown in the customer portal
```

Configure it once. A buyer of your "Indie Game Engine — Studio License" receives a fresh key the instant their card clears, and it's revoked automatically on refund.

### File downloads

Host files up to 10 GB and serve them through per-customer links with access controls — no public buckets, no leaked URLs.

Common cases:

* Installers, binaries, and SDK bundles
* Course videos, workbooks, and PDFs
* Design templates, fonts, and asset packs
* High-resolution audio and video

### GitHub repository access

Auto-invite buyers to a private repo on purchase, and pull access when a subscription lapses or a refund is issued — ideal for source-available tools and starter kits.

### Discord roles

Assign a role on payment and remove it on expiry. Great for paid communities, cohort courses, and premium support tiers.

### Anything else

For benefits the built-in types don't cover, [wire up a custom benefit](/features/benefits/custom). Macropay fires a webhook when access should be granted or revoked, and your server runs the logic — provision a seat in your app, flip a feature flag, whatever the product needs.

## Pick a pricing model that fits the product

Everything in Macropay is a **product** — one-time or recurring, same API and data model, different billing logic.

<CardGroup cols={2}>
  <Card title="One-time" icon="cart-shopping">
    A fixed price, paid once, access kept forever. Templates, e-books, lifetime licenses.
  </Card>

  <Card title="Subscription" icon="arrows-rotate">
    Recurring billing on monthly, yearly, or custom intervals, with dunning and failed-payment recovery built in.
  </Card>

  <Card title="Pay-what-you-want" icon="hand-holding-dollar">
    Let buyers name their price, with an optional floor. Useful for tip jars, donations, and launch pricing tests.
  </Card>

  <Card title="Usage-based" icon="gauge">
    Charge for what's actually consumed — tokens, API calls, storage, or any metric you meter. Built for APIs and AI products.
  </Card>
</CardGroup>

<Tip>
  Selling an **AI product or agent**? Usage-based billing is where Macropay pulls ahead. Meter on usage, activity, or **outcome**, route model traffic through our OpenAI-compatible proxy to capture token cost automatically, and use the Signals API to bill agents on the value they deliver — see [products and pricing models](/features/products) for the full picture.
</Tip>

## Go live with checkout

Three ways to take payment, from a shareable link to full programmatic control.

### Shareable link — zero code

Create a checkout link in the dashboard and drop it anywhere: a landing page, an email, a launch tweet.

```text theme={null}
https://macropay.ai/your-org/checkout?product=your-product-id
```

### Embedded checkout — stay on your domain

Mount the checkout component in your own page so buyers never leave your site.

```typescript theme={null}
"use client";
import { MacropayCheckout } from "@macropayments/checkout";

export default function BuyPage() {
  return (
    <MacropayCheckout
      productId="your-product-id"
      successUrl="/thank-you"
    />
  );
}
```

### Sessions API — full control

Create checkout sessions server-side when you need to set the customer, prefill data, or branch on your own logic.

```typescript theme={null}
import { Macropay } from "@macropayments/sdk";

const macropay = new Macropay({
  accessToken: process.env.MACROPAY_ACCESS_TOKEN,
});

// Sell the "Indie Game Engine — Studio License"
const session = await macropay.checkouts.create({
  products: ["your-product-id"],
  customerEmail: "buyer@studio.dev",
  successUrl: "https://yourapp.com/success",
});

// Send the buyer to session.url to complete payment
```

## Tax handled, end to end

As MoR we don't just calculate tax — we register, file, and remit it under our own entities, then put the correct breakdown on every invoice your customer receives.

| Region        | What we cover                                                  |
| ------------- | -------------------------------------------------------------- |
| **EU**        | VAT across all 27 member states, including B2B reverse charge  |
| **UK**        | Post-Brexit VAT handled under separate registration            |
| **US**        | State-level sales tax with nexus tracking and filing           |
| **Canada**    | Federal GST plus provincial HST/PST                            |
| **Australia** | GST on digital goods                                           |
| **Growing**   | New registrations added as merchants expand into fresh markets |

Your buyer sees a compliant invoice with the right VAT number and tax lines for their country. You see one payout.

## Pricing

|                                       |                                            |
| ------------------------------------- | ------------------------------------------ |
| **Per transaction**                   | 4.5% + \$0.50                              |
| **International cards (non-US)**      | +1.5%                                      |
| **Subscriptions**                     | +0.5%                                      |
| **Disputes / chargebacks**            | \$30 each (any outcome)                    |
| **Monthly fee**                       | \$0                                        |
| **Setup fee**                         | \$0                                        |
| **Payouts**                           | ACH (US) and SEPA (EU) free; SWIFT at cost |
| **Tax, fulfillment, customer portal** | Included                                   |

Nothing is owed until your first sale clears — no minimums, no setup cost, no surprises.

## Get started

<Steps>
  <Step title="Create an account">
    [Sign up at macropay.ai](https://macropay.ai/signup) with GitHub, Google, or email, then create an organization for your business.
  </Step>

  <Step title="Add your first product">
    Set a price, choose one-time or subscription, and attach benefits — license keys, downloads, repo or Discord access.
  </Step>

  <Step title="Publish a checkout">
    Grab the checkout link, embed the component, or call the Sessions API. Whatever fits your stack.
  </Step>

  <Step title="Get paid">
    Buyers check out and receive their benefits instantly. We handle tax, invoices, and disputes; you collect a clean payout.
  </Step>
</Steps>

<CardGroup cols={2}>
  <Card title="Start selling" icon="rocket" href="https://macropay.ai/signup">
    Open an account and list your first product in minutes.
  </Card>

  <Card title="Explore products" icon="compass" href="/features/products">
    Dig into pricing models, benefits, and usage-based billing.
  </Card>
</CardGroup>
