๐Ÿค Payment processing and order tracking with YooKassa and Google Sheets

โšก 1,069 views ยท ๐Ÿค CRM & Sales Operations

Description

Accept YooKassa payments and log transactions in Google Sheets

๐Ÿงพ Summary

This workflow allows you to accept online payments via YooKassa and log both orders and transactions in Google Sheets โ€” all without writing a single line of code. It supports full payment flow: product selection, payment initiation, webhook processing, refund updates, and payment status checks.


๐Ÿ‘ฅ Who is this for?

This template is ideal for:


๐ŸŽฏ What problem does this workflow solve?

Setting up online payments usually requires backend infrastructure. This no-code solution automates the entire payment flow:


โš™๏ธ What this workflow does

1. GET /products

Returns a sorted list of products from a Google Sheet (products).

2. POST /payment

3. POST /yoomoney

Webhook to process payment/refund events:

4. GET /status/:id

Returns real-time payment status from YooKassa


๐Ÿš€ Setup

  1. Connect credentials:

    • Google Sheets (OAuth2)
    • YooKassa (Basic Auth using shopId and secretKey)
  2. Update the following Google Sheets:

    • products: should contain product_id, title, price
    • orders: for saving confirmed purchases
    • transactions: for logging all successful or refunded payments
  3. Test endpoints using any HTTP client:

Example payload for /payment:

{
  "product_id": "abc123",
  "email": "user@example.com",
  "return_url": "https://your.site/success"
}

๐Ÿ”ง How to customize this workflow


๐Ÿ’ผ Use cases


๐Ÿ“Ž Notes

โœ… Includes Sticky Notes for sections โœ… Includes error handling and validation โœ… No custom code needed except UUID generation

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Webhook

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup