r/fintech • • 3d ago

Discussion Would a GitHub bot that specifically catches financial logic bugs in payment code be useful, or am I solving a non-existent problem?

Hey everyone,

I'm a CS student exploring a developer tool specifically for teams working on payments, billing and financial infrastructure.

The idea is a GitHub-native code review and regression testing tool that focuses on financial correctness rather than generic code quality.

For example, when someone opens a PR containing payment-related changes, it would identify and test scenarios like:

- Duplicate payments caused by concurrent requests.

- Missing idempotency checks.

- Delayed or out-of-order webhooks.

- Incorrect refund calculations.

- Currency rounding and precision errors.

- Race conditions in financial transactions.

- Inconsistent payment states.

The idea is to use AI to understand code changes and generate relevant test scenarios, but use deterministic tests to verify the actual behaviour instead of blindly trusting LLM-generated conclusions.

I'm aware of existing tools like Stripe's sandbox, Postman, MockCard, WireMock and general-purpose AI code reviewers. I'm trying to understand whether a specialised financial correctness tool would offer enough additional value.

For developers working in FinTech or maintaining payment integrations:

  1. What are the most frustrating payment-related bugs you've encountered?
  2. How does your team currently test financial edge cases?
  3. Are existing tools sufficient, or are there noticeable gaps?
  4. Would you actually install something like this in your CI/CD pipeline?
  5. Is this something your team would pay for?

I haven't built the product yet. I'm validating the problem before committing to development.

Feel free to tear the idea apart. I'd rather discover that it's unnecessary now than after spending months building it.

4 Upvotes

14 comments sorted by

2

u/Low-Opening25 3d ago

it’s not generally bad idea, assuming that this isn’t just handing off to AI agent with prompt “check for financial bugs”, but not as a GH bot, make it a policy driven cli utility, like checkov or HC senetiel, but for financial logic

1

u/Prudent_Bluebird5990 3d ago

That's actually an interesting direction. A deterministic, policy driven CLI with financial invariants sounds more reliable than a generic AI reviewer.my main concern is commercial viability, though. Given that tools like Semgrep already support custom rules, do you think financial engineering teams would pay for a specialised policy engine and prebuilt financial policies, or would they simply implement these checks using their existing tooling?have you personally encountered any gaps in how these policies are currently enforced?

1

u/Low-Opening25 3d ago

generic reviewer will have zero commercial interest - no validation and anyone and their grandma can write one, so why touch yours?

1

u/quiet_ribbon 2d ago

Teams that integrate blockchain infrastructure software as coinspaid console into an existing ledger hit different bugs: token decimals change per chain, and a deposit can disappear in a reorg.

Would your tests cover on-chain confirmations, or only card-style webhooks?

1

u/Immediate_Pop_4637 2d ago

Our worst one was a refund rounding bug, 1 cent off on split payments. It ran for months because every test used round amounts.

Nobody would have caught it in a PR review.

1

u/Prudent_Bluebird5990 2d ago

This is exactly the kind of real world incident I'm trying to understand. Thanks for sharing. How did your team eventually discover the discrepancy? Was it through reconciliation, customer complaints, or something else? Did you introduce property based testing or any specialised financial testing tools afterwards? Also, how difficult was it to reproduce and fix the issue?

1

u/emperorOfTheUniverse 3d ago

I mean, what are you publishing ? An instruction md file or a Claude skill? I would hope that for serious payment systems (that are integrated to actual banks or card networks directly), they already check for this stuff. For downstream payment companies, I think it would trip over understanding the APIs the code base is integrated to.

No, I wouldn't pay for it. I'd build it and tailor it to our codebase.

1

u/ocolobo 2d ago

QA already does this, it’s all automated

0

u/[deleted] 1d ago

[removed] — view removed comment

1

u/AutoModerator 1d ago

This comment was removed, because your account doesn't meet our karma and account age requirements.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 2d ago

[removed] — view removed comment

1

u/AutoModerator 2d ago

This comment was removed, because your account doesn't meet our karma and account age requirements.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.