---
title: "Discussion on \"The Refund State Machine That Saved Our SMS Reseller from Bleeding Money\" | Hashnode"
description: "Discussion on \"The Refund State Machine That Saved Our SMS Reseller from Bleeding Money\". 30% of SMS verification codes never arrive. Here is the Postgres state machine that fixed our naive refund flow before it bled us out."
url: "https://hashnode.com/posts/the-refund-state-machine-that-saved-our-sms-reseller-from-bleeding-money/69d38f354543ced8e7aa570d"
---

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

Discussion

# [The Refund State Machine That Saved Our SMS Reseller from Bleeding Money](https://verifysms.hashnode.dev/the-refund-state-machine-that-saved-our-sms-reseller-from-bleeding-money?utm_source=hashnode&utm_medium=feed)

30% of SMS verification codes never arrive. Here is the Postgres state machine that fixed our naive refund flow before it bled us out.

Apr 6 · 6 min read · verifysms.hashnode.dev  
Read the article

-   [#architecture](https://hashnode.com/tag/architecture)
-   [#backend](https://hashnode.com/tag/backend)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#saas](https://hashnode.com/tag/saas)

## Written by

[serhat dogan](https://hashnode.com/@verifysms)

@verifysms

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
