Integration of Kaspi QR, FreedomPay and Telegram Stars into web services
Payment webhooks with idempotency, verification of HMAC signatures, fiscalization and automatic opening of access after payment.
TL;DR · Key Answer
Reliable integration of Kaspi QR and FreedomPay requires idempotencyKey to protect against double debiting, verify the cryptographic signature of the webhook, and instantly update the status in the database.
Checklist
- Store idempotencyKey with a unique index so that repeated webhooks do not duplicate charges.
- Check the amount and currency from the webhook with the original order in the database.
- Log all incoming payment events with a timestamp.
Forum Discussions (vbcd4u.com)
Все обсуждения →🛡️ Безопасность · ▲ 1
Безопасные вебхуки Kaspi QR (ApiPay/TolePay) и Freedom Pay: HMAC-SHA256 и идемпотентность
🔥 Нейросети · ▲ 0
Telegram-бот: webhook или long polling, secret_token и деплой на serverless
🔥 Нейросети · ▲ 0
Вебхуки Stripe в Next.js App Router: подпись, сырое тело и идемпотентность
🔥 Нейросети · ▲ 0
WhatsApp Cloud API + 1С: счёт на оплату через AI-агента с подтверждением человеком
🔥 Нейросети · ▲ 0
Вебхук оплаты Kaspi QR: идемпотентность, проверка подписи и защита от двойной выдачи
Engineering Guides (MurdaSoft)
2026-11-17
B2B SaaS Engineering on Next.js 15: Multi-Tenancy via PostgreSQL RLS, Dual Kaspi QR & Stripe Billing Architecture
2026-11-16
Secure Kaspi QR & Freedom Pay Webhooks in Next.js: HMAC-SHA256 & Idempotency Keys
2026-11-16
1C ERP, WhatsApp Business API & AI Agents in Kazakhstan: Automating B2B Sales, Stock & Kaspi Pay Invoicing
2026-11-14
AI Agents for Business in Kazakhstan: 24/7 Autonomous Sales & Support in WhatsApp, Telegram & CRM
FAQ
How to avoid double charges when receiving a webhook from a payment again?
Create a collection/table of processed webhook_events with a unique idempotencyKey or paymentId and check it before changing the balance.