
Your staff press Refund. Nothing comes back. Do they press again?
Field noteMoney
Your staff press Refund. Nothing comes back. Do they press again?
If they do, a simple link between your sales system and your payment provider can send the money back TWICE. Ours could. We caught it in testing, built the fix, and it went live on 2026-12-04.
What this means for your business
You do not need to know what a "payment bridge" is to have this problem. If your shop, clinic or agency takes payments online, and your staff press Refund in one system while the money sits with a payment provider, then something passes the message between the two. Think of a waiter who carries your order from the table to the kitchen. On a normal day the order arrives once.
The trouble starts when the kitchen cooks the dish, and the waiter never comes back to say so.
That is about USD 90 that should go back, and about USD 180 that does. Not a fee and not a percentage. The whole refund, a second time. And the customer has no reason to tell you.
Now count how many refunds your team makes in a month, and how often your screen is slow. That is your exposure. You find out when you check the bank, weeks later... if you check at all.
RM 400 is an example, not a measured figure. Put in your own usual refund.
How the same refund goes out twice
Here is the whole thing in one picture. The top row is what could happen in our own system before the fix. The bottom row is what happens now.
One refund, two presses
Before the fix
- Staff press RefundThe request goes to the provider.
- Money goes backThe provider sends the refund.
- The answer is lostSlow, or lost on the way back. The screen shows nothing.
- Press againOr the sales system retries by itself.
- Money goes back AGAINA brand new refund. RM 400 becomes RM 800.
With the 3 guards
- Staff press RefundThe payment is put on hold.
- Money goes backThe result is read and written down.
- The answer is lostSame as before.
- Press againThe hold is still on.
- Refused. Nothing sent.A clear message instead of a second refund.
The second press can also come from the sales system itself. When it never hears back, it tries again on its own.
In our case three small things lined up. Our link said "done" the moment the provider replied, without reading the result back. It let go of its hold on that payment at the same moment. And it gave every try a new reference number, so the provider had no way to see that it was the same refund.
Nothing looks broken. Every step “worked”. That is what makes it dangerous.
What we found when we tested our own
On 2026-12-03 we wrote 27 new tests for the refund part of our own billing link, and ran them against the version we had at the time. 19 of the 27 failed, including all 3 tests where the same refund is asked for twice.

The 3 guards that stop it
- Hold the payment until the result is read. One hold per payment. It stays on until the link has asked the provider "what actually happened?" and written the answer down. If the answer is unclear, refunds for that payment stay locked until the provider shows what happened, or a person checks. A second press in that time is refused, and nothing is sent.
- Look before you send. Before any new refund, the link reads the provider's own list of refunds for that payment. If a refund is already there that we have no record of, we record it and send nothing new.
- A ceiling. All refunds on one payment, added together, can never be more than the payment itself. And a second refund of the same amount on the same payment is refused for 24 hours, with a clear message.
Each guard catches a different case. Together, they stopped the double refund in every case we could test. The fix went live in our own billing system on 2026-12-04.
How we checked our own fix
We did not trust our first fix. A reviewer that did not write the code went through it in 4 rounds. The first round found a real problem in our own fix: in one rare case it could tell the sales system "no money refunded"... while a real refund had already gone out. We fixed that and sent it back. Three more rounds, three more smaller holes, all fixed.
Then we tested the tests. We planted more than 40 deliberate bugs in the refund code, one at a time, to see if the tests would notice. They caught every one, except one bug that turned out to change nothing at all. The version that went live passes all 369 tests for the billing link.
One more check, in the payment provider's own test system, with play money: we sent the same refund twice with the same reference number. The provider refused the second one and made nothing. So the provider itself is now a fourth guard behind our three.
The side we chose, on purpose
If the sales system loses our "done" answer and staff press again, the link refuses the second press. So the sales screen can show "not refunded" while the money did go back once. We chose that side. A wrong "not refunded" is visible, and a person can fix it by hand in a minute. A wrong "refunded" tells a customer money is coming that never comes.
The 24-hour block on a same-amount refund is annoying on purpose too. If you really do need to refund the same amount twice in one day, a person does the second one by hand in the payment provider. That is a few minutes of work, against money gone for good.
Ask these 5 questions this week
You do not need to read code. Ask your staff, or whoever set up your payments.
- “What happens if Refund is pressed twice, and the first answer never comes back?”If the answer is "that cannot happen", ask them to show you the test.
- “Can one payment ever be refunded for more than it was?”The only good answer is no, and it should be the system that says no, not a person remembering.
- “When the refund screen hangs, what do we do?”Write the rule down for your staff: wait, then check the payment provider BEFORE pressing again.
- “Who checks refunds against the bank every week?”Name one person. A double refund is invisible until someone puts the two lists side by side.
- “When the sales system and the payment provider disagree, which one is right?”The payment provider holds the money, so it is the record. Fix the sales system to match it, never the other way round.
Five minutes with your team. If any answer is "I am not sure", that is the one to fix first.
Not sure what your payments do when an answer gets lost?
Tell us what you use to sell and to take payment. We will tell you which of these 5 questions to ask first, and what a good answer sounds like.
Ask us to look at your setup No cost to ask. We reply on working days.How we checked. We wrote 27 new refund tests on 2026-12-03 and ran them against the version of our own billing link we had then; 19 failed. The fixed version went live on 2026-12-04 and passes all 369 tests for the link. It caught more than 40 planted bugs, all but one that changed nothing, and went through 4 rounds of review by a reviewer that did not write it. The repeat-reference test ran in the payment provider's test system with play money. Every payment in these tests was simulated. RM 400 is an example, and USD figures are rounded.
Systems Ninjas Lab (2026-12). Your staff press Refund. Nothing comes back. Do they press again? systemsninjas.com/post/refund-pressed-twice-paid-twice
Take any of it. You do not need to ask. If you find an error in here we would rather hear about it than not, and the correction goes on the page.