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
- GET /products
Returns a sorted list of products from a Google Sheet (products).
- 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
- POST /yoomoney
Webhook to process payment/refund events:
On payment.succeeded, adds entry to transactions On refund.succeeded, updates transaction status
- GET /status/:id
Returns real-time payment status from YooKassa
๐ Setup
Connect credentials:
Google Sheets (OAuth2) YooKassa (Basic Auth using shopId and secretKey)
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
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 UUID generation
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
๐ฐ AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments