Disclosure: I work on Waffo Pancake, a merchant of record. This post is about the integration side, not a product pitch.
When a SaaS starts selling to customers in other countries, someone has to be the legal seller. With a payment processor such as plain Stripe, that is you: you register for VAT/GST/sales tax where required, file returns, and handle chargebacks. With a merchant of record (MoR), the MoR resells your product and takes on those obligations.
This post looks at the part developers notice first: what changes in the code.
1. Prices become "what the customer pays", not "what you charge"
With a processor you usually store a net price and add tax at checkout. With an MoR, the checkout calculates tax for the buyer's location, and the amount you receive is after tax and fees. Keep two numbers in your database:
customer_paid (gross, in the buyer's currency)
payout_amount (what lands in your balance)
Reports built on only one of them will be wrong.
If you need the business side first — who registers for tax, who files returns, who issues the invoice, and what the fee actually covers — the longer explanation is here: merchant of record: what it means and when to switch. The rest of this post assumes you already know who the legal seller is and want to know what that does to your schema.
2. The order source of truth moves to webhooks
The MoR owns the checkout session, so your app should not mark an order as paid from the redirect page. Treat the webhook (payment.succeeded, subscription.renewed, refund.created, ...) as the only writer of payment state, and make the handler idempotent by storing the event id.
// Only the webhook writes payment state. The redirect page writes nothing.
app.post("/webhooks/mor", async (req, res) => {
const event = verify(req); // signature check first
await db.tx(async (t) => {
// unique index on webhook_events.id: a replayed event stops here
const fresh = await t.insertIgnore("webhook_events", { id: event.id, type: event.type });
if (!fresh) return;
if (event.type === "payment.succeeded") {
await t.upsert("orders", { id: event.order_id, customer_paid: event.amount_gross,
payout_amount: event.amount_net, currency: event.currency, status: "paid" });
}
if (event.type === "refund.created") {
await t.update("orders", { id: event.order_id }, { status: "refunded" });
}
});
res.sendStatus(200);
});
3. Refunds and disputes are events, not admin actions
A chargeback is handled by the MoR, but your app still has to react: revoke access, reverse usage credits, mark the invoice. Model it as an incoming event rather than something you trigger yourself.
4. Invoices are issued by the seller
Because the MoR is the seller, it issues the tax invoice. Link customers to that invoice instead of generating your own, or you end up with two documents that disagree.
When it is worth switching
A rough rule: once you sell into more than one tax jurisdiction, or tax admin starts taking hours every month, the MoR fee is usually cheaper than doing compliance yourself. Below that, a processor is simpler.
What did you have to change when you moved (or decided not to move) to an MoR?