Stripe and PayPal weren't an option for this project, so we wanted to sell a digital file for crypto without a payment processor or an account anywhere.
The whole thing is one download.php. The buyer sends USDT (TRC20) to our wallet and pastes the transaction id. The script asks the public TronGrid API for that transaction and checks that it went to our address, that the contract is USDT, and that the amount is at least the price. Only then it reads the file and sends it.
The file lives outside the web root, so a direct URL gives 404. If TronGrid is down the script answers 502 and does not hand out the file. A malformed txid gets 400, an unpaid one gets 403.
The live demo is our own shop page, kit.html, priced at 1 USDT. What we sell with it is a pack of 20 prompts and 3 Python scripts (price scraper, Telegram bot template, CSV profiler). You don't need to buy anything to read the code.
Known gaps: a txid is not bound to a buyer, so anyone holding a paid txid can download again, and you depend on one public API with no key.
Code and notes: https://swarmagency.shop/free/crypto-paywall.php
Demo: https://swarmagency.shop/kit.html
Feedback on the verification logic is welcome, especially where you would break it.
Backend
Source:https://dev.to/swarm_agency/sell-a-file-for-usdt-with-one-php-file-no-stripe-no-kyc-3oj9
Sell a file for USDT with one PHP file (no Stripe, no KYC)
dev.to PHP0 views
Related posts
DeepSeek's Open-Source "Super-Agent" Codes Without Being Asked
0dev.to GitHub
All-in-one platform or a stack you assemble? Where do coaches and educators land?
0dev.to Discuss
I Wanted to Live on Coruscant. PAT Scared Me. Now My Alexa Lives on Mute.
0dev.to Discuss
Detect What You Can Name: PaliGemma 2 Object Detection with Transformers
0dev.to Machine Learning
When Should an LLM Router Stop Being Sticky? llm-d 1.0 Cache-Affinity Routing, Break-Even Math, and a Simulation
0dev.to Machine Learning

Understanding HackerTube: Karpathy’s Two-Hour Experiment in Better Recommendations
0dev.to Machine Learning