n8n WhatsApp Integration: Accept Payments and Send Payment Status Automatically
Описание и применение
В этом рецепте показано, как интегрировать n8n с платежным провайдером Kelviq для отправки ссылки на оплату через WhatsApp, получения вебхука о завершении платежа, проверки подписи и уведомления клиента об успешной или неудачной оплате.
Задача
How to accept payments inside an n8n workflow and notify customers via WhatsApp when the payment succeeds or fails.
Результат
The workflow allows a WhatsApp bot to send a Pay Now button, automatically detect successful payments via Kelviq webhooks, and inform the customer of success or failure without requiring a custom server.
Рабочий процесс
- Create a payment link by calling Kelviq’s checkout API via an HTTP Request node.
- Send the returned checkoutUrl to the customer through WhatsApp.
- Set up an n8n Webhook node to receive Kelviq’s checkout.completed event.
- Verify the webhook’s authenticity using the secret key and signature headers.
- If the webhook is valid, send a success message to the customer; otherwise, query Kelviq for the payment status and send a failure message.
Доказательства
Kelviq handles the payment. n8n handles the steps. Webhooks connect the two.
Kelviq does not send a message when a one-time payment fails.
Add a Code node after the Webhook node and paste this in. It checks the stamp using your secret key:
- Дата записи: 2026-10-26T07:26:30.884Z