Atomic transactions, as with any database. After sending the money, confirm that it arrived. If it didn't, undo the subtraction.
That said, shoddy implementations of these systems often do fail in numerous ways. As an end-user, you really just have to live with it.