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'''
Endpoint fixed hai. Aap transaction ID, amount, account, IFSC, name, bank aur remark edit karke button click करोगे to payout request जाएगी.
Fixed URL:
API me exactly ye URL, headers aur body jayegi.
Content-Type: application/json Authorization: Bearer YOUR_TOKEN
{
"client_ref": "TXNREF832475893",
"amount": "103",
"mode": "IMPS",
"beneficiary": {
"name": "Amit Sagar",
"account": "8150434140",
"ifsc": "KKBK0005219",
"bank": "KOTAK BANK LTD"
},
"remark": "EVYAPAR PAY"
}
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"
}'
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.