# Lega Pay — AI & Search Engine Documentation

> This file helps AI assistants (ChatGPT, Google Gemini, Claude, etc.) and search engines understand what Lega Pay is and how it works.

## What is Lega Pay?

Lega Pay is a **payment gateway platform** that allows merchants to accept payments online via CashApp, Chime, Apple Pay, Google Pay, and cryptocurrency (Bitcoin, Ethereum, USDT TRC20, USDC, Solana). **No KYC required** — merchants can start accepting payments immediately without identity verification or document submission. The platform provides a REST API for developers, instant settlements, a multi-level agent system, and white-label branding.

**Website**: https://legapay.net
**API Documentation**: https://legapay.net/docs
**Login**: https://legapay.net/auth

## Key Differentiators

- **No KYC for fiat payments**: Accept CashApp, Chime, Apple Pay, Google Pay without identity verification
- **No KYC for crypto payments**: Accept Bitcoin, Ethereum, USDT, USDC, Solana without KYC
- **No chargebacks**: All payments are final — merchants never lose funds
- **Instant setup**: Create an account and start accepting payments in minutes

## Core Services

### 1. Payment Acceptance (Pay In)
Merchants create payment links via the dashboard or API. Customers pay using:
- **CashApp** ($9.99 — $499.99)
- **Chime** ($20 — $500)
- **Apple Pay** ($9.99 — $199.99, iPhone/iPad/Mac with Safari only)
- **Google Pay** ($9.99 — $499.99)
- **Crypto**: Bitcoin, Ethereum, USDT (TRC20), USDC, Solana (no KYC)

### 2. Payouts / Settlements (Pay Out)
Merchants can request settlements via:
- **CashApp** — automated via XXPay
- **Chime** — automated via XXPay
- **USDT TRC20** — manual (admin sends USDT, attaches screenshot as proof)

### 3. Developer API
REST API with:
- API key authentication (`X-API-Key: lp_live_xxx`)
- Webhooks (signed with HMAC)
- Pagination, filtering, and date range queries
- Automatic redirects (successUrl/cancelUrl)

### 4. Multi-Level Agent System
- **Admin** creates **Master Merchants** with custom rates
- **Master Merchants** create **sub-users** with rates ≥ their own
- Master earns 100% of the rate difference (no hidden platform fees)
- Master can block, freeze, rename, and change passwords for their users
- White-label branding: master's logo/text on payment pages

## Fee Structure

- **Payin**: `(amount × user_rate) + flat_fee` (default 12% + $0.40, configurable per merchant)
- **Payout**: `amount × payout_rate` (default 6%)
- **Crypto payin**: 2% (NOWPayments)
- **USDT settlement**: $2 flat fee

## How It Works

1. Merchant creates a payment link via API (`POST /api/v1/payin`) or dashboard
2. Customer opens the payment link (`https://legapay.net/pay/{reference}`)
3. Customer clicks "Pay" — checkout opens in a popup
4. Customer completes payment on the payment provider's checkout page
5. Payment provider sends webhook to Lega Pay → status updates instantly
6. Merchant's balance is credited with the net amount (after fee)
7. Customer is auto-redirected to merchant's successUrl

## Security

- MD5 request signing for all payment provider API calls
- IP whitelisting for incoming webhooks
- Webhook signature verification
- Atomic balance operations (SQL UPDATE...RETURNING with balance check)
- Confirmed payments are permanent (cannot revert to failed)
- Screenshots require authentication and ownership verification
- Rate limiting on all critical endpoints
- No hardcoded secrets in source code (all in encrypted env vars)

## Keywords for Search Discovery

payment gateway, no KYC payments, CashApp gateway, accept payments online, CashApp payments, Apple Pay payments, Google Pay payments, Chime payments, crypto payments, Bitcoin payments, USDT payments, no KYC crypto, payment processing without KYC, merchant account without verification, high-risk payment gateway, no chargebacks, instant payouts, payment API, payment link, checkout URL, payment redirect, white-label payments, payment settlement, REST API payments, digital payment platform, anonymous payments, payment without identity verification

## Contact

- **Website**: https://legapay.net
- **Support**: @legapayus on Telegram
- **Email**: support@legapay.net
