OpenBCP / USDT checkout / Match USDT payments to orders

How to match USDT payments to orders

If you accept USDT at one wallet address, every payment looks the same on the blockchain. Matching each transfer to the right order is the hard part of accepting crypto. These are the common approaches and how they hold up.

The matching problem

On a blockchain, a payment is just a transfer of tokens from one address to another. There is no order number attached. If all your customers send USDT to one wallet, you see a list of amounts and sender addresses, and you have to work out which one belongs to which order.

Three approaches

ApproachHow it worksProblem
One wallet, match by senderAsk the customer which address they paid fromManual, error-prone, and exchanges send from shared addresses
One wallet, unique amountsAdd small cents to each price so every order has a distinct totalCustomers round or lose cents to fees, and two orders can collide as volume grows
Unique address per orderEach order gets its own deposit addressNeeds address generation, but matching becomes exact

Why a memo does not work here

Some networks let a sender attach a memo or tag that identifies the order. A BEP-20 transfer on BNB Smart Chain has no memo field. On this network, an address per order is the dependable method.

How OpenBCP does it

  1. You create an invoice and pass your own order id as external_id.
  2. OpenBCP generates a unique deposit address for that invoice.
  3. When a payment to that address confirms, the webhook returns both invoice_id and your external_id.
{
  "invoice_id": 42,
  "external_id": "order-123",
  "status": "PAID",
  "deposit_address": "0x...",
  "txid": "0x..."
}

You look up order-123 in your own system and mark it paid. No guessing and no manual checks.

Handling repeats safely

A webhook can be delivered more than once, for example if your server was slow to answer. Key your fulfilment on external_id so a repeat does nothing the second time. See webhooks for the details and signature checks.

If the amount is not exact

With an address per order you know who paid, but the customer may still send a different amount. Those cases are covered in underpaid and overpaid invoices.

Back to the USDT checkout overview.

Frequently asked questions

How do I know which order a USDT payment belongs to?

The most reliable way is to give every order its own deposit address. A payment to that address can only belong to that order.

Can I use one wallet and match by amount?

You can add small unique cents to each amount, but customers round, exchanges deduct fees, and two orders can collide. It breaks down as volume grows.

Does BNB Smart Chain support a memo or tag?

No. A BEP-20 transfer has no memo field, so you cannot tell payers apart by a memo on a shared address.

How does OpenBCP match payments?

Each invoice gets its own address, and the webhook returns both the invoice_id and your own external_id.

Get started free Read the docs Try the sandbox

More guides