---
title: "Discussion on \"The race condition that prints free money, and how I stopped it in my Laravel payment gateway\" | Hashnode"
description: "Discussion on \"The race condition that prints free money, and how I stopped it in my Laravel payment gateway\". How I stopped race conditions, double charges and fake webhooks in a Laravel payment gateway with row locks, idempotency keys and HMAC."
url: "https://hashnode.com/posts/the-race-condition-that-prints-free-money-and-how-i-stopped-it-in-my-laravel-payment-gateway/6afedfba63b78688430ee8ba"
---

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

Discussion

# [The race condition that prints free money, and how I stopped it in my Laravel payment gateway](https://alase.hashnode.dev/the-race-condition-that-prints-free-money-and-how-i-stopped-it-in-my-laravel-payment-gateway?utm_source=hashnode&utm_medium=feed)

How I stopped race conditions, double charges and fake webhooks in a Laravel payment gateway with row locks, idempotency keys and HMAC.

1d ago · 3 min read · alase.hashnode.dev  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)
-   [#fintech](https://hashnode.com/tag/fintech)
-   [#php](https://hashnode.com/tag/php)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#webdevelopment](https://hashnode.com/tag/webdevelopment)

## Written by

[Gbolahan Olanrewaju](https://hashnode.com/@alase)

@alase

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

Software engineer dabbling in fintech

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
