---
title: "Discussion on \"Would Your Payments Code Pass an Audit?\n5 Tests You Can Run Today\" | Hashnode"
description: "Discussion on \"Would Your Payments Code Pass an Audit?\n5 Tests You Can Run Today\". Auditors use a short checklist to decide whether a set of books can be trusted. Each item fits in a few lines of SQL or Python."
url: "https://hashnode.com/posts/would-your-payments-code-pass-an-audit-5-tests-you-can-run-today/6af5ed8b537a5b51108f83e3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Would Your Payments Code Pass an Audit? 5 Tests You Can Run Today](https://financialblock.hashnode.dev/would-your-payments-code-pass-an-audit-5-tests-you-can-run-today?utm_source=hashnode&utm_medium=feed)

Auditors use a short checklist to decide whether a set of books can be trusted. Each item fits in a few lines of SQL or Python.

1d ago · 11 min read · financialblock.hashnode.dev  
Read the article

## Written by

[Brandon Robert Rodriguez](https://hashnode.com/@brandonpines)

@brandonpines · Pembroke Pines, Florida

  
[View profile](https://hashnode.com/@brandonpines)

Exploring modern technology and finance.

## Responses 1

Markdown supported · ⌘↵ to post

[Azhar Abbas](https://hashnode.com/@azharabbas)

[14h ago](https://hashnode.com/posts/would-your-payments-code-pass-an-audit-5-tests-you-can-run-today/6af5ed8b537a5b51108f83e3/comment/6af6bb046f8563d7a013f0e9)

The two-way reconciliation is the key part here. One useful addition is to test the processor report for duplicate IDs before joining it: a duplicate on either side can multiply rows and make the amount comparison misleading. I would also separate pending settlements from genuine exceptions using an explicit cutoff, so a normal settlement delay does not hide a growing backlog.
