[2026-02-25 00:59:11] 
================================================================================
[2026-02-25 00:59:11] 🚀 1xGate Webhook Forwarder - No Defaults Version
[2026-02-25 00:59:11] ================================================================================
[2026-02-25 00:59:11] 📡 Request Method: GET
[2026-02-25 00:59:11] 📥 GET Parameters received
[2026-02-25 00:59:11] 📊 All GET Parameters:
[2026-02-25 00:59:11]    🔑 payment_uid = test_1771968389
[2026-02-25 00:59:11]    🔑 amount = 0.30
[2026-02-25 00:59:11]    🔑 paymentStatus = COMPLETED
[2026-02-25 00:59:11] 🔧 Request Type: Manual Test (GET without user_id)
[2026-02-25 00:59:11] 🔍 Extracting data from manual_test...
[2026-02-25 00:59:11] 🎯 Found paymentStatus in GET: COMPLETED
[2026-02-25 00:59:11] 🔧 Manual Test Data:
[2026-02-25 00:59:11]    👤 user_id: 510783028 (FIXED)
[2026-02-25 00:59:11]    🎫 payment_uid: test_1771968389
[2026-02-25 00:59:11]    💰 amount: $0.3
[2026-02-25 00:59:11]    📊 payment_status: COMPLETED
[2026-02-25 00:59:11] ✅ Final Payment Status from request: COMPLETED
[2026-02-25 00:59:11] 📤 Data prepared for Python:
[2026-02-25 00:59:11]    🔑 metadata.payment_status: COMPLETED
[2026-02-25 00:59:11]    🔑 original_data.status: COMPLETED
[2026-02-25 00:59:11] 🚀 Forwarding to Python server: http://127.0.0.1:2053/cryptopay-webhook
[2026-02-25 00:59:12] ✅ Python Response: {"admin_notified":true,"amount":0.299999999999999988897769753748434595763683319091796875,"bot_accessible":true,"bot_id":8532160266,"days_added":30,"full_price":1,"gateway":"1xgate","gateway_status":"COMPLETED","message":"اشتراک پلن فارسی فعال شد!","message_type":"success","messages_added":80,"method_received":"POST","minimum_required":0.5,"payment_status":"completed","payment_uid":"test_1771968389","plan":"fa","processed_at":"2026-02-25T00:59:12.300112","status":"success","subscription_activated":true,"user_id":510783028,"user_language":"fa","user_notified":true}
[2026-02-25 00:59:12] ✅ Response sent to client
[2026-02-25 00:59:12] 📊 Request Type: manual_test | Status: SUCCESS
[2026-02-25 00:59:12] 🎯 Payment Status Forwarded: COMPLETED
[2026-02-25 00:59:12] 👤 User ID Used: 510783028 (FIXED)
[2026-02-25 00:59:12] ================================================================================

[2026-02-25 01:00:40] 
================================================================================
[2026-02-25 01:00:40] 🚀 1xGate Webhook Forwarder - No Defaults Version
[2026-02-25 01:00:40] ================================================================================
[2026-02-25 01:00:40] 📡 Request Method: POST
[2026-02-25 01:00:40] 📥 POST Raw data length: 143 bytes
[2026-02-25 01:00:40] 🔐 X-1xGate-Signature: Not provided
[2026-02-25 01:00:40] 📦 POST Data received successfully
[2026-02-25 01:00:40] 🔍 Extracting data from unknown...
[2026-02-25 01:00:40] ⚠️ No payment status found in request
[2026-02-25 01:00:40] ✅ Final Payment Status from request: EMPTY
[2026-02-25 01:00:40] ❌ Validation errors for unknown: Invalid user_id: NULL, Missing payment_uid, Invalid amount: $0
[2026-02-25 01:01:10] 
================================================================================
[2026-02-25 01:01:10] 🚀 1xGate Webhook Forwarder - No Defaults Version
[2026-02-25 01:01:10] ================================================================================
[2026-02-25 01:01:10] 📡 Request Method: GET
[2026-02-25 01:01:10] 📥 GET Parameters received
[2026-02-25 01:01:10] 📊 All GET Parameters:
[2026-02-25 01:01:10]    🔑 user_id = 123456
[2026-02-25 01:01:10]    🔑 amount = 5.0
[2026-02-25 01:01:10]    🔑 payment_uid = test_123
[2026-02-25 01:01:10]    🔑 payment_status = success
[2026-02-25 01:01:10]    🔑 plan_type = fa
[2026-02-25 01:01:10] 👤 Request Type: User Callback (GET with user_id)
[2026-02-25 01:01:10] 🔍 Extracting data from user_callback...
[2026-02-25 01:01:10] 🎯 Found payment_status in GET: success
[2026-02-25 01:01:10] 🎯 User Callback Data:
[2026-02-25 01:01:10]    👤 user_id: 123456
[2026-02-25 01:01:10]    🎫 payment_uid: test_123
[2026-02-25 01:01:10]    💰 amount: $5
[2026-02-25 01:01:10]    📊 payment_status: success
[2026-02-25 01:01:10] ✅ Final Payment Status from request: success
[2026-02-25 01:01:10] 📤 Data prepared for Python:
[2026-02-25 01:01:10]    🔑 metadata.payment_status: success
[2026-02-25 01:01:10]    🔑 original_data.status: success
[2026-02-25 01:01:10] 🚀 Forwarding to Python server: http://127.0.0.1:2053/cryptopay-webhook
[2026-02-25 01:01:10] ✅ Python Response: {"admin_notified":true,"amount":5,"bot_accessible":true,"bot_id":8532160266,"days_added":30,"full_price":1,"gateway":"1xgate","gateway_status":"success","message":"اشتراک پلن فارسی فعال شد!","message_type":"success","messages_added":80,"method_received":"POST","minimum_required":0.5,"payment_status":"success","payment_uid":"test_123","plan":"fa","processed_at":"2026-02-25T01:01:10.449010","status":"success","subscription_activated":true,"user_id":123456,"user_language":"fa","user_notified":false}
[2026-02-25 01:01:10] ✅ Response sent to client
[2026-02-25 01:01:10] 📊 Request Type: user_callback | Status: SUCCESS
[2026-02-25 01:01:10] 🎯 Payment Status Forwarded: success
[2026-02-25 01:01:10] 👤 User ID Used: 123456
[2026-02-25 01:01:10] ================================================================================

[2026-02-25 01:02:23] 
================================================================================
[2026-02-25 01:02:23] 🚀 1xGate Webhook Forwarder - No Defaults Version
[2026-02-25 01:02:23] ================================================================================
[2026-02-25 01:02:23] 📡 Request Method: GET
[2026-02-25 01:02:23] 📥 GET Parameters received
[2026-02-25 01:02:23] 📊 All GET Parameters:
[2026-02-25 01:02:23]    🔑 user_id = 510783028
[2026-02-25 01:02:23]    🔑 amount = 5.0
[2026-02-25 01:02:23]    🔑 payment_uid = test_123
[2026-02-25 01:02:23]    🔑 payment_status = success
[2026-02-25 01:02:23]    🔑 plan_type = fa
[2026-02-25 01:02:23] 👤 Request Type: User Callback (GET with user_id)
[2026-02-25 01:02:23] 🔍 Extracting data from user_callback...
[2026-02-25 01:02:23] 🎯 Found payment_status in GET: success
[2026-02-25 01:02:23] 🎯 User Callback Data:
[2026-02-25 01:02:23]    👤 user_id: 510783028
[2026-02-25 01:02:23]    🎫 payment_uid: test_123
[2026-02-25 01:02:23]    💰 amount: $5
[2026-02-25 01:02:23]    📊 payment_status: success
[2026-02-25 01:02:23] ✅ Final Payment Status from request: success
[2026-02-25 01:02:23] 📤 Data prepared for Python:
[2026-02-25 01:02:23]    🔑 metadata.payment_status: success
[2026-02-25 01:02:23]    🔑 original_data.status: success
[2026-02-25 01:02:23] 🚀 Forwarding to Python server: http://127.0.0.1:2053/cryptopay-webhook
[2026-02-25 01:02:23] ✅ Python Response: {"admin_notified":true,"amount":5,"bot_accessible":true,"bot_id":8532160266,"days_added":30,"full_price":1,"gateway":"1xgate","gateway_status":"success","message":"اشتراک پلن فارسی فعال شد!","message_type":"success","messages_added":80,"method_received":"POST","minimum_required":0.5,"payment_status":"success","payment_uid":"test_123","plan":"fa","processed_at":"2026-02-25T01:02:23.530394","status":"success","subscription_activated":true,"user_id":510783028,"user_language":"fa","user_notified":true}
[2026-02-25 01:02:23] ✅ Response sent to client
[2026-02-25 01:02:23] 📊 Request Type: user_callback | Status: SUCCESS
[2026-02-25 01:02:23] 🎯 Payment Status Forwarded: success
[2026-02-25 01:02:23] 👤 User ID Used: 510783028
[2026-02-25 01:02:23] ================================================================================

