YooKassa
Process payments with YooKassa (YooMoney) — a leading Russian payment gateway
YooKassa (formerly Yandex.Kassa) is a leading payment processing platform in Russia, enabling businesses to accept payments via bank cards, e-wallets, online banking, SBP (Fast Payment System), and other methods. It is widely used by online merchants for payment acceptance and payout operations.
With the YooKassa integration in AACFlow, you can:
- Create payments: Initiate one-time payments with various payment methods and currencies
- Process recurring payments: Set up auto-payments and subscriptions for regular billing
- Handle payouts: Send funds to bank cards, e-wallets, and bank accounts
- Track payment status: Monitor payment lifecycle — pending, succeeded, canceled, refunded
- Manage refunds: Process full and partial refunds programmatically
- Generate receipts: Create and send fiscal receipts according to 54-FZ requirements
This integration enables complete payment workflow automation for Russian e-commerce, from checkout to settlement.
Usage Instructions
Integrate YooKassa into the workflow. Can create payments, handle payouts, and track transaction status. Requires YooKassa shop ID and secret key.
Tools
yookassa_create_payment
Create a new payment
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Payment amount |
currency | string | No | Currency code (default: RUB) |
description | string | No | Payment description |
paymentMethodId | string | No | Saved payment method ID |
capture | boolean | No | Auto-capture on success (default: true) |
returnUrl | string | No | Redirect URL after payment |
shopId | string | Yes | YooKassa shop ID |
secretKey | string | Yes | YooKassa secret key |
Output
| Parameter | Type | Description |
|---|---|---|
id | string | Payment ID |
status | string | Payment status |
confirmationUrl | string | Redirect URL for user payment |
amount | object | Amount details |
yookassa_get_payment
Get payment details by ID
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
paymentId | string | Yes | Payment ID |
shopId | string | Yes | YooKassa shop ID |
secretKey | string | Yes | YooKassa secret key |
Output
| Parameter | Type | Description |
|---|---|---|
id | string | Payment ID |
status | string | Current payment status |
amount | object | Payment amount |
paid | boolean | Whether payment was completed |
yookassa_create_payout
Send a payout to a user
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Payout amount |
payoutDestinationData | object | Yes | Destination details (card, wallet, etc.) |
description | string | No | Payout description |
shopId | string | Yes | YooKassa shop ID |
secretKey | string | Yes | YooKassa secret key |
Output
| Parameter | Type | Description |
|---|---|---|
id | string | Payout ID |
status | string | Payout status |

