check_payment
Check the current state of a Robokassa payment by invoice ID. Returns status code, sums, payment method, and user parameters.
Instructions
Check the current state of a Robokassa payment by invoice ID.
Uses the OpStateExt XML interface. Returns a structured summary including
the state code (5/10/20/50/60/80/100), the OpKey (required later for
initiating a refund via Refund/Create), sums, payment method, and any
user-defined Shp_* parameters attached at checkout.
State codes: 5 — инициализирована, не оплачена 10 — отменена (таймаут / пользователь) 20 — HOLD (предавторизация) 50 — средства получены, зачисление магазину 60 — отказ в зачислении, средства возвращены покупателю (это НЕ пользовательский refund — для него используйте refund_status) 80 — приостановлена (security check) 100 — оплачена ✅
Credentials may be passed explicitly or via ROBOKASSA_LOGIN / ROBOKASSA_PASSWORD2 environment variables.
Note: OpStateExt does NOT reflect post-payment refunds initiated through the Robokassa cabinet or Refund/Create. For that, store the requestId from Refund/Create and poll Refund/GetState.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inv_id | Yes | ||
| merchant_login | No | ||
| password2 | No | ||
| algorithm | No | md5 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||