RasmiyPay API

Rasmiy to'lov tizimi - Oson, tez va xavfsiz to'lovlar

Telegram Bot
To'lov yaratish
POST /api?method=create
Parametrlar:
  • shop_id - Do'kon ID (majburiy)
  • shop_key - Do'kon kaliti (majburiy)
  • amount - To'lov miqdori (majburiy)
Javob:
{ "status": "success", "order": "abc123xyz", "insert_id": 12345, "data": { "amount": "50000", "shop_id": "695008", "shop_key": "Z631XLBO7O" }, "pay_url": "https://domain.com/pay/token" // faqat page type da }
To'lov tekshirish
GET /api?method=check&order={order}
Parametrlar:
  • order - Buyurtma kodi (majburiy)
Javob:
{ "status": "success", "order": "abc123xyz", "data": { "amount": "50000", "status": "pending", // pending, paid, cancel "date": "2024-01-01" } }
To'lov bekor qilish
POST /api?method=cancel&order={order}
Parametrlar:
  • order - Buyurtma kodi (majburiy)
Javob:
{ "status": "success", "message": "Buyurtma muvaffaqiyatli bekor qilindi.", "order": "abc123xyz" }
Do'kon ma'lumotlari
GET /api?shop_id={id}&shop_key={key}
Parametrlar:
  • shop_id - Do'kon ID (majburiy)
  • shop_key - Do'kon kaliti (majburiy)
Javob:
{ "status": "success", "data": { "user_id": 123456789, "shop_id": "695008", "shop_name": "Do'kon nomi", "balance": "100000", "status": "confirm", "month_status": "Toʻlandi" } }
PHP kod misoli
<?php
// To'lov yaratish
$ch = curl_init("https://www.69c78c04390ad.xvest6.ru/api?method=create");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'shop_id' => '695008',
'shop_key' => 'Z631XLBO7O',
'amount' => 50000
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
$result = json_decode($response, true);

if ($result['status'] == 'success') {
echo "Buyurtma yaratildi: " . $result['order'];
}
?>
Tez to'lov tekshiruvi (Python bot)

To'lovlar har 10 sekundda avtomatik tekshiriladi:

  • ✅ To'lov topilganda darhol balansga qo'shiladi
  • ✅ Foydalanuvchiga Telegram orqali xabar boradi
  • ✅ Har bir to'lov transactions.json faylida saqlanadi
  • ✅ Muddati o'tgan to'lovlar avtomatik bekor qilinadi
Bot ishlayotganligini tekshirish: /health endpoint