Explainer · Payments

Robustly Monitoring for Payments

In plain words

This page gives businesses advice on how to watch for incoming payments on the XRP Ledger, so that an unusual payment is never counted as more than it really delivered.

Written by zerps in plain words, from the source linked below.
Section
Concepts

In plain words

If your business issues tokens and accepts payments, your systems need to read each incoming transaction carefully. A transaction can look like a payment and still deliver less than you expect. The checks below help you credit each customer the right amount.

What to check

Keep a record of the last transaction and ledger you processed, so you know how far to go back if you lose your connection for a while. Check the result code of every incoming payment. Some failed payments still go into the ledger to charge an anti-spam fee, and only a transaction with the result code tesSUCCESS can change balances other than XRP. Only transactions from a validated ledger are final.

Partial payments

A payment with the partial payment flag switched on counts as successful if any amount above zero is delivered, even a tiny one. Look for the delivered_amount field in the transaction. A field is one named value, and when this one is present it shows how much money actually reached the Destination address. In xrpl.js, the getBalanceChanges method shows how much each address received.

Matching your own books

As an added precaution, compare the balances of your issuing address with the funds in your own accounting system at each new ledger version. The gateway_balances method shows your balances. The two should match. If they do not, pause payments into and out of the XRP Ledger until you have found the reason.

Good to know

Some transactions change your balances without being payments sent directly to or from one of your addresses. To make things simpler for customers, the page recommends accepting payments to both your operational address and your issuing addresses. If you have set a transfer fee, what you owe inside the XRP Ledger goes down slightly whenever other addresses transfer your tokens among themselves.

In the source's words
Recommendations for monitoring incoming payments for a variety of possible irregularities.xrpl.org

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.