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
andrefund.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 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
shopId
andsecretKey
)
-
Update the following Google Sheets:
products
: should containproduct_id
,title
,price
orders
: 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 UUID generation
Contact Info:
Address : HCM city, Viet Nam
Email : Support@interphase.vn
Phone : +84 961 350 391