from pathlib import Path import zipfile base = Path("/mnt/data/zepay_one_click_payout_page") base.mkdir(parents=True, exist_ok=True) php_code = r''' Zepay One Click Payout

One Click Payout Page

Endpoint fixed hai. Aap transaction ID, amount, account, IFSC, name, bank aur remark edit karke button click करोगे to payout request जाएगी.

Payout Form

Fixed URL:

https://api.zepay.money/api/v1/payout

Beneficiary

Request Preview

API me exactly ye URL, headers aur body jayegi.

Generated Header

Content-Type: application/json
Authorization: Bearer YOUR_TOKEN

JSON Body

{
    "client_ref": "TXNREF832475893",
    "amount": "103",
    "mode": "IMPS",
    "beneficiary": {
        "name": "Amit Sagar",
        "account": "8150434140",
        "ifsc": "KKBK0005219",
        "bank": "KOTAK BANK LTD"
    },
    "remark": "EVYAPAR PAY"
}

cURL Preview

curl --location 'https://api.zepay.money/api/v1/payout' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--data '{
    "client_ref": "TXNREF832475893",
    "amount": "103",
    "mode": "IMPS",
    "beneficiary": {
        "name": "Amit Sagar",
        "account": "8150434140",
        "ifsc": "KKBK0005219",
        "bank": "KOTAK BANK LTD"
    },
    "remark": "EVYAPAR PAY"
}'

Latest Logs

Time HTTP Txn ID Amount Account Full Log

Security: Is page ko public folder me open mat chhodna. PAGE_PASSWORD set kar sakte ho. Live token ko file me hardcode karne se pehle risk samajh lo.

''' readme = """Zepay One Click Payout Page =========================== File: - zepay_one_click_payout.php What this page does: - Fixed payout URL: POST https://api.zepay.money/api/v1/payout - Sends exactly two headers: Content-Type: application/json Authorization: Bearer TOKEN - Editable fields: client_ref / transaction ID amount mode beneficiary name beneficiary account beneficiary IFSC beneficiary bank remark - One button: Send Payout Transaction - Shows: request preview cURL preview API response cURL error raw headers logs Security: - Keep this page in private/admin folder. - Set PAGE_PASSWORD in PHP file if needed. - The API token is not hardcoded by default. - If you want fixed token in code, open PHP file and set: define('DEFAULT_API_TOKEN', 'YOUR_TOKEN_HERE'); Warning: - If valid token/IP/beneficiary are active, clicking send can make a real payout. """ php_path = base / "zepay_one_click_payout.php" readme_path = base / "README.txt" php_path.write_text(php_code, encoding="utf-8") readme_path.write_text(readme, encoding="utf-8") zip_path = Path("/mnt/data/zepay_one_click_payout_page.zip") if zip_path.exists(): zip_path.unlink() with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as z: z.write(php_path, "zepay_one_click_payout.php") z.write(readme_path, "README.txt") zip_path