Automation library · Money admin

Payment processing and order tracking with YooKassa

Started by another system calling it, and works across Google Sheets. 39 steps, 9 branches: large, and worth reading before you trust it with anything live.

Large

39 stepsLarge: read it before trusting it with anything live
9Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 18Logic 12Service 9

The steps in the order they run, from what starts it.

  1. 1Get productsWebhookStarts it
  2. 2PaymentWebhookStarts it
  3. 3StatusWebhookStarts it
  4. 4Handle YooKassa webhookWebhookStarts it
  5. 5Get products_1Google SheetsService
  6. 6Check request valuesIfLogic
  7. 7Check request values_1IfLogic
  8. 8Handle EventsSwitchLogic
  9. 9Sorting by priceSortLogic
  10. 10Handle Error (get product)Respond To WebhookStarts it
  11. 11Email validationIfLogic
  12. 12Handle ErrorRespond To WebhookStarts it
  13. 13YooKassa Request StatusHttp RequestService
  14. 14Handle Error (check request)Respond To WebhookStarts it
  15. 15Validation metadataIfLogic
  16. 16Validation metadata_IfLogic
  17. 17Respond ProductsRespond To WebhookStarts it
  18. 18Get product_idSetLogic
  19. 19Respond statusRespond To WebhookStarts it
  20. 20Handle Error statusRespond To WebhookStarts it
  21. 21Get OrderGoogle SheetsService
  22. 22Handle Error webhookRespond To WebhookStarts it
  23. 23Get transactionGoogle SheetsService
  24. 24Get ProductGoogle SheetsService
  25. 25Check OrderIfLogic
  26. 26Check if transaction existsIfLogic
  27. 27Check product_idIfLogic
  28. 28Handle Error (get product)_1Respond To WebhookStarts it
  29. 29Save TransactionGoogle SheetsService
  30. 30Update refund statusGoogle SheetsService
  31. 31Idempotence Key GenerationCodeLogic
  32. 32Handle Error (product_id)Respond To WebhookStarts it
  33. 33Respond payment eventRespond To WebhookStarts it
  34. 34Respond refund eventRespond To WebhookStarts it
  35. 35YooKassa RequestHttp RequestService
  36. 36Save OrderGoogle SheetsService
  37. 37Handle Error (yookassa)Respond To WebhookStarts it
  38. 38Respond PaymentRespond To WebhookStarts it
  39. 39Handle Error (save order)Respond To WebhookStarts it

How it's built

Starts on
Another system calling it
Steps
39, with 9 branches
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own Google Sheets account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 39 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 39 steps before you point it at anything that matters.