Repository navigation
feat(notifications): add WhatsApp payment notifications (#958) - #1319
Merged
github-actions[bot] merged 1 commit intoOct 21, 2026
Merged
github-actions[bot] merged 1 commit into
github-actions[bot] merged 1 commit into
Conversation
|
@livinalt is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@livinalt Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
WhatsAppChannelfor sending WhatsApp notifications with recipient normalization, message formatting, credential handling, and simulated delivery when API credentials are unavailable.WhatsAppNotificationChannelimplementing theNotificationChannelinterface for the plugin notification architecture, including priority-aware formatting and health checks.WhatsAppPaymentNotificationServiceto handle payment success, payment failure, and refund notifications.whatsappEnabledandwhatsappNumber)./api/v1/notifications/whatsappfor triggering WhatsApp payment notifications.Changes
New Files
backend/src/notifications/channels/__tests__/whatsapp-channel.test.tsbackend/src/notifications/channels/whatsapp-channel.tsbackend/src/routes/whatsapp.tsbackend/src/services/__tests__/whatsapp-notifications.test.tsbackend/src/services/notifications/channels/whatsapp.tsbackend/src/services/whatsapp-payment-notifications.tsUpdated Components
NotificationPreferenceServiceto support:whatsappEnabledwhatsappNumberNotificationTemplateServiceto include WhatsApp templates for:payment_receiptpayment_confirmationrefund_notificationDeliveryTrackerto record WhatsApp notification deliveries.Why
This PR implements the WhatsApp payment notification feature requested in Issue #958, enabling users to receive payment confirmations, failure alerts, and refund notifications via WhatsApp.
The implementation integrates with the existing notification architecture, respects user notification preferences, supports local development through simulated deliveries when API credentials are unavailable, and is fully backward compatible with existing notification channels.
How to test
TWILIO_ACCOUNT_SIDTWILIO_AUTH_TOKENWHATSAPP_FROM_NUMBERWHATSAPP_API_URLPOST /api/v1/notifications/whatsapp/payment-successPOST /api/v1/notifications/whatsapp/payment-failedPOST /api/v1/notifications/whatsapp/payment-refundedNotes