# Accept Cash App on your online store, no chargebacks

Built with the Breez SDK. Customers pay from Cash App over Lightning, the store receives USDT, and every payment is final: no friendly fraud, nothing to charge back.

## How do online stores avoid chargebacks on payments?

Card payments can be disputed weeks later, and the store loses the sale plus a fee. Our checkout takes Cash App over Lightning instead. A Lightning payment is final once it settles, so there's no card network to dispute it through and nothing to charge back.

## How can customers pay with Cash App while the store receives USDT?

The customer checks out and pays from Cash App. The Breez SDK's Cash App to USDC/USDT bridge turns that Lightning payment into USDT and delivers it to the store's address on Tron. Our backend marks the order paid as soon as the bridge reports the payment as completed.

## How it works

We use the Breez SDK's [Cash App to USDC/USDT](https://docs.breez.technology/guide/cash_app_to_usdc_usdt.html) bridge:

1. `getBridgingClient()` on the connected SDK gives us a bridging client.
2. `client.getRoutes({ recipient })` lists the routes to the store's USDT address on Tron, and we pick the one funded over Lightning.
3. `bridgeFromCashApp` creates the order for the cart total, which the customer pays from Cash App.
4. `client.getBridgeStatus({ bridgeId, statusToken })` tells us when the payment is `completed`, and we mark the order paid.

The checkout flow is in `src/checkout.ts` and the order updates in `src/status.ts`.

## Demo

![A customer pays $20 from Cash App and the store receives USDT](demo.gif)

Live demo: https://online-store-checkout.vercel.app

## How to run it

1. Get a free Breez API key: https://docs.breez.technology/guide/getting_started.html
2. Clone this repo and run `npm install`.
3. Copy `.env.example` to `.env`, then add your Breez API key, your wallet's mnemonic and the store's USDT address on Tron.
4. Run `npm run dev` and open http://localhost:3000.

## Team

Ada (@ada-builds) and Sam (@sam-ships)

---

Built at Hack The Nest 2026 for </time2build>. Licensed under MIT.
