Enable Automatic Sms delivery support for successful Payment Transactions#1282
Enable Automatic Sms delivery support for successful Payment Transactions#1282beesaferoot merged 8 commits intomainfrom
Conversation
7e0d66c to
144ff33
Compare
|
Now, that the transaction refactor PR is merged, can you rebase this? So, it's easier to review 🙏 |
ceb7e3c to
72bb79e
Compare
dmohns
left a comment
There was a problem hiding this comment.
Looks really good. I have one more (feature) requests which I would like to have for this PR.
Could we have some way for the user to control whether or not automatic transaction SMS is enable for their tenant?
For example, we already have a SMS section in settings, and a sub-section for Transaction. Could we add a main switch (and boolean) setting to control whether or not this feature is enabled?
1082ebb to
3f18f54
Compare
Added a toggle to enable or disable sms delivery for transactions. Ready for your review @dmohns |
This commit include key refactors that let us make automatic sms delivery after payment process. They key refactors are as follows; - Consolidate sms push after a successfull transaction using `SmsTransactionConfirmationSmsListener` - this is trigger with `TransactionSuccessculEvent`. - Simplifying Transaction Confirmation Sms into three types respectively; Smart Meter (token based), SHS (token based) and No token transaction i.e Non-paygo appliance/device. - Simplifying SMS template; we now only need to configure the transaction confirmation body which makes it easier for users to understand. Previous templates are still in use by other forms of sms but aren't active. With this changes, coupled with a configured sms gateway. Tokens are automatically sent to customers.
3f18f54 to
3b04be1
Compare
dmohns
left a comment
There was a problem hiding this comment.
Very nice! Tested it with a TextBee + Spark setup, seems to working fine. Let's create a stand alone release for this feature!!

Makes progress on #1243
Brief summary of the change made
This PR introduces key refactors that enable automatic SMS delivery after a successful payment. The main changes are outlined below:
Centralized SMS dispatch after successful transactions by introducing
SendTransactionConfirmationSmsListener, which is triggered byTransactionSuccessfulEvent.Simplified transaction confirmation SMS logic into three clear categories:
Streamlined SMS templates: only the transaction confirmation message body now needs to be configured, making messages clearer and easier for customers to understand. Previous templates are still used for other SMS types but are no longer active for transaction confirmations.
End-to-end automation: with these changes, and once an SMS gateway is configured, tokens are automatically sent to customers upon payment.
Are there any other side effects of this change that we should be aware of?
Describe how you tested your changes?
Pull Request checklist
Please confirm you have completed any of the necessary steps below.