Payment Processing and Order Tracking with YooKassa and Google Sheets
# 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: * Online stores with simple checkout flows * Sellers of digital products or info-courses * Entrepreneurs using Telegram bots or web forms * Anyone needing quick payment integration with Google Sheets tracking --- ## What problem does this workflow solve? Setting up online payments usually requires backend infrastructure. This no-code solution automates the entire payment flow: * Handles product listing and price retrieval * Initiates payments with email and return URL * Listens for `payment.succeeded` and `refund.succeeded` events * Records every action into structured Google Sheets --- ## What this workflow does ### 1. **GET /products** Returns a sorted list of products from a Google Sheet (`products`). ### 2. **POST /payment** * Validates required fields (`product_id`, `email`, `return_url`) * Checks email format * Fetches product data from `products` * Generates a unique idempotence key * Sends a request to YooKassa API * Saves the order into the `orders` sheet * Returns a payment confirmation link ### 3. **POST /yoomoney** Webhook to process payment/refund events: * On `payment.succeeded`, adds entry to `transactions` * On `refund.succeeded`, updates transaction status ### 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`: ```json { "product_id": "abc123", "email": "user@example.com", "return_url": "https://your.site/success" } ``` --- ## How to customize this workflow * Add delivery logic (e.g., email with product link after successful payment) * Replace Google Sheets with a database (e.g., PostgreSQL) * Connect Telegram or other messengers for post-payment notifications * Add promo codes, discounts, or subscriptions logic --- ## Use cases * Simple online checkouts * Telegram bots selling access * Educational product sales * MVP e-commerce flows * Donation or membership payments --- ## Notes * Includes Sticky Notes for sections * Includes error handling and validation * No custom code needed except for UUID generation
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:
- Online stores with simple checkout flows
- Sellers of digital products or info-courses
- Entrepreneurs using Telegram bots or web forms
- Anyone needing quick payment integration with Google Sheets tracking
What problem does this workflow solve?
Setting up online payments usually requires backend infrastructure. This no-code solution automates the entire payment flow:
- Handles product listing and price retrieval
- Initiates payments with email and return URL
- Listens for
payment.succeededandrefund.succeededevents - Records every action into structured Google Sheets
What this workflow does
1. GET /products
Returns a sorted list of products from a Google Sheet (products).
2. POST /payment
- Validates required fields (
product_id,email,return_url) - Checks email format
- Fetches product data from
products - Generates a unique idempotence key
- Sends a request to YooKassa API
- Saves the order into the
orderssheet - Returns a payment confirmation link
3. POST /yoomoney
Webhook to process payment/refund events:
- On
payment.succeeded, adds entry totransactions - On
refund.succeeded, updates transaction status
4. GET /status/:id
Returns real-time payment status from YooKassa
Setup
-
Connect credentials:
- Google Sheets (OAuth2)
- YooKassa (Basic Auth using
shopIdandsecretKey)
-
Update the following Google Sheets:
products: should containproduct_id,title,priceorders: for saving confirmed purchasestransactions: for logging all successful or refunded payments
-
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
- Add delivery logic (e.g., email with product link after successful payment)
- Replace Google Sheets with a database (e.g., PostgreSQL)
- Connect Telegram or other messengers for post-payment notifications
- Add promo codes, discounts, or subscriptions logic
Use cases
- Simple online checkouts
- Telegram bots selling access
- Educational product sales
- MVP e-commerce flows
- Donation or membership payments
Notes
- Includes Sticky Notes for sections
- Includes error handling and validation
- No custom code needed except for UUID generation
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
E-commerce Store Automation Suite
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $24.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related E-commerce workflows
- Automate AI-Generated Virtual Try-On Images for WooCommerce$14.99
- Automate E-commerce Visual Content Creation with AI$19.99
- Automate Multilingual Shopify Product Descriptions with AI Vision Analysis$4.99
- Automate Shopify SEO Content Creation with GPT-4 & Claude Multi-Agent System$24.99
- Automate 3D Product Video Creation from 2D Images for E-Commerce$14.99
- Create a Smart Shopping Assistant with Persistent Memory Using Zep, GPT-4, and Google Sheets$4.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.