*

moohmd

  • **
  • 15 posts
Add another message gateway
« on: November 03, 2019, 05:53:08 PM »
Hello, I would like to use the local SMS gateway in my country because all other gateways are delayed in sending messages
The portal link I want to use is https://smsgw.net
Is there a way to use it?

*

MB Themes

Re: Add another message gateway
« Reply #1 on: November 06, 2019, 03:47:39 PM »
@moohmd
First you must integrate it. Check functions.php for details about integration of other gateways.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

moohmd

  • **
  • 15 posts
Re: Add another message gateway
« Reply #2 on: November 07, 2019, 06:26:10 PM »
This means it is possible to add another sms gateway in the functions.php file

*

MB Themes

Re: Add another message gateway
« Reply #3 on: November 08, 2019, 09:38:53 AM »
Correct.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: Add another message gateway
« Reply #4 on: June 02, 2022, 10:27:21 AM »
Hello, I would like to use the local SMS gateway in my country because all other gateways are delayed in sending messages
The portal link I want to use is https://smsgw.net
Is there a way to use it?


Please, I also want to integrate this SMS gateway: https://www.mnotify.com/ . Is that possible please?

*

MB Themes

Re: Add another message gateway
« Reply #5 on: June 02, 2022, 05:11:38 PM »
Yes it is possible.
« Last Edit: June 03, 2022, 08:52:13 AM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: Add another message gateway
« Reply #6 on: June 02, 2022, 11:44:37 PM »
Ues it is possible.

Please, any assistance with that?

*

MB Themes

Re: Add another message gateway
« Reply #7 on: June 03, 2022, 08:52:54 AM »
@support
No, development is needed, either you are able to modify some of existing gateways to new one or you hire developer to implement new one.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Smithtech

  • ****
  • 219 posts
Re: Add another message gateway
« Reply #8 on: June 03, 2022, 02:04:26 PM »
For instance, this is the implementation for RING CAPTCHA

Code: [Select]
// RING CAPTCHA
  } else if ($provider == 'ringcaptcha') {
    $data = array('api_key' => sms_param('ringcaptcha_api_key'), 'phone' => $phone_number, 'message' => $message);
    $string = http_build_query($data, '', '&');

    $url = 'https://api.ringcaptcha.com/' . sms_param('ringcaptcha_app_key') . '/sms';
    $ch = curl_init($url);

    curl_setopt($ch, CURLOPT_POST, true);

    curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('application/x-www-url-encoded; charset=utf-8'));
    $response = curl_exec($ch);
    $error = (curl_errno($ch) ? curl_error($ch) : false);

    curl_close($ch);
 

Please, how can we edit this with the documentation provided here? https://readthedocs.mnotify.com/