
- MODX 3
- PHP 8.2
- miniShop3


What you need to go live (or to test) with YooKassa and MiniShop3.
| Requirement | Version |
|---|---|
| MODX Revolution | 3.0+ |
| PHP | 8.2+ |
| MiniShop3 | installed |
| pdoTools | 3.x |
| YooKassa account | Store in the merchant profile. To test without real money use a test shop and a test_ key. Pay with test card numbers. |
After install you should see plugin msp3yookassa_bootstrap (event OnMODXInit) — it loads autoloading for payment classes. Confirm the plugin is enabled.
msp3yookassa.msp3yookassa_shop_id — shop ID from the YooKassa dashboard.msp3yookassa_secret_key — secret key (for testing use a test_ key).Details: System settings.
If this is empty or wrong, the order in MODX may stay “unpaid” even when YooKassa shows a successful charge.
https://your-domain.com/assets/components/msp3yookassa/webhook.phpThe package resolver creates two methods (if missing):
| Method | When to use |
|---|---|
| YooKassa payment | normal sale — immediate capture |
| YooKassa payment (two-stage) | hold → confirm via Capture processor |
ms3_status_paid (often ID 3 — verify in MiniShop3 settings).If status does not update, check webhook URL, HTTPS, firewall, and keys.
To send receipt data in the create-payment request:
msp3yookassa_payment_receipt to Yes.msp3yookassa_vat_code (codes 1–10 — see the table in system settings).properties.email or user profile email).In a test shop you can turn on YooKassa’s receipt check mode (kassa is simulated, no real OFD slip) — fine for integration checks. Use real kassa settings in your live shop before go-live.
Otherwise no receipt block is sent. See System settings and Integration.
msp3yookassa_success_url, msp3yookassa_fail_url, msp3yookassa_debug, VAT