Please post all pre-sales questions of all products on this forum

Applying additional code to the module

  • Mr Leslie Jarrett
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 2 weeks ago - 2 years 2 weeks ago #158338 by Mr Leslie Jarrett
Applying additional code to the module was created by Mr Leslie Jarrett
Like a few comments on here regarding the topic of sending documents i.e. the PDF file to a WhatsApp phone number.
Where I live and the project I am working on for a Diabetes Support Group they are going to buy these packages and want to send pdf's using WhatsApp.

From what I understand so far is that at present you do not have an implementation to support WhatsApp at the back end processing of a request such as an event booking.

What I am thinking as way around this and you can confirm or give help on how to do this  is as follows

1. Subscribe to a service like Ultramsg as they have a good API system that can be used within Joomla
2. Ultramsg has a good pricing structure of unlimited for $39 per month
3 given the fact that they have a means say in PHP to use CURL to send a message to WhatsApp phone with files attached it seems logical that your modules can produce the PDF files for bookings etc and as such these same PDF files can be sent using UltraMsg.

My question is is there a place within the modules at the point where you have created these pdf files and likewise you send them by e-mail to have the code to send them by WhatsApp .   In simple terms a hook where I could add the CURL php code to send the document to whatsapp.

would it work under the following section.onAfterPaymentSuccessThis event is triggered when status of the registration record changed from Pending to Paid (after payment is completed or admin change status of registration record from Pending to Paid in case registrant using offline payment method for the registration)
Code:
public function onAfterPaymentSuccess($row) { }
 
Last edit: 2 years 2 weeks ago by Mr Leslie Jarrett.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam