Reza Shirazi / Head of Engineering

Freelance 2022

Tron crypto payment gateway

Creator and only developer

A self-hosted gateway that lets a website accept TRX and USDT payments on the Tron network, with a simple API and an admin panel.

01 The problem

Site owners wanted to accept crypto payments without a third-party gateway. They needed to create a payment address, show it to the payer, and confirm that the money arrived.

02 What I built

  • 01

    Payment API

    Other websites call the API to create a payment address, get a QR code and check a payment.

  • 02

    One address per payment

    Each payment gets its own new address. It counts as paid once that address holds the expected amount.

  • 03

    Two coins, one design

    TRX and USDT share one coin layer, so a new coin can be added as one new part.

  • 04

    Safe repeat checks

    Checking the same payment twice returns the saved record instead of making a second one.

  • 05

    Admin panel

    Wallets, withdrawals, transactions, search and an income report for each currency.

03 How it works

  1. 01Website asks the gateway for a new payment address
  2. 02Payer scans a QR code and sends TRX or USDT
  3. 03Website asks the gateway to check the payment
  4. 04Gateway records the transaction once the balance matches

04 Result

  • Lets site owners take crypto payments without a third-party gateway.
  • Admins see income for each currency in one report.
  • Checking a payment twice does not create a second record.

Stack

  • PHP
  • Laravel 8
  • MySQL
  • Tron
  • USDT (TRC-20)
  • REST API
  • Blade

Get in touch.

Working on a platform, a backend or AI agents? Tell me about it.