SMS Gateway setting

How to setup any gateway with the smshare module for Opencart


Posted on June 16, 2015

Update on December 25, 2016

Tags: Opencart

Introduction

In this quick post we will see how to setup any gateway with the smshare module for Opencart. Smshare modules for Opencart are available on the smshare official store for both Opencart 1 and Opencart 2 .

Theoretical case

Every SMS gateway out there will provide you with an API to send SMS programmatically. They often provide you with a GET URL or in some case with a POST endpoint.

The GET URL provided looks like the following:

http://www.sms-gateway.com/send-sms?num=12345679&msg=hello&param1=xyz&param2=abc&...

URL part Name Description Optional?
http://www.sms-gateway.com/send-sms The API Gateway URL Enter the gateway URL in the API URL field in smshare module configuration. Required
num The destination field This is the name of the variable that represents the destination numbers. Required
msg The message field This is the name of the variable that reprensents the message. Required
param1, param2, etc Additional fields These are additional parameters that may be required by your gateway. Optional

Here is a screenshot of how you enter these values in smshare module configuration.

Gateway configuration example

Some example

Here below screenshots of some working gateways configurations.

ClickSend.com

Register for a ClickSend account here: ClickSend.com Gateway configuration example

MSG91

Gateway configuration example Bulk SMS - MSG91

Here are the configuration values shown in the screenshot above, for MSG91 for easy copy/paste

Name Value Note
The API URL https://control.msg91.com/api/sendhttp.php
The destination field mobiles
The message field message
Additional field route 4
Additional field authkey Your API authkey
Additional field sender Your senderID

Liveall

liveall.eu is a Greek SMS gateway.

Gateway configuration example

Here are the configuration values shown in the screenshot above, for liveall for easy copy/paste

Name Value Note
The API URL https://sms.liveall.eu/apiext/Sendout/SendSMS
The destination field destination
The message field message
Additional field apitoken
Additional field senderid Your senderID

Mobily.ws

Gateway configuration example

Here are the configuration values shown in the screenshot above, for mobily.ws for easy copy/paste

Name Value Note
The API URL http://www.mobily.ws/api/msgSend.php
The destination field numbers
The message field msg Check the "unicode the message" setting. This gateway requires the message body to be converted to Unicode
Additional field mobile Your mobile number used when you registered with mobily.ws
Additional field password Your password used when you registered with mobily.ws
Additional field sender Your senderID you registered with mobily.ws
Additional field applicationType 24

mvaayoo

Gateway configuration example

Here are the configuration values shown in the screenshot above, for mVaayoo for easy copy/paste

Name Value Note
The API URL http://api.mVaayoo.com/mvaayooapi/MessageCompose
The destination field receipientno Note that they made a spelling mistake (recipient is correct) but you must stick with receipientno
The message field msgtxt
Additional field user the value looks like: username@example.com:123456
Additional field senderID

oursms.net

Gateway configuration example

redsms.in

Gateway configuration example

46elfks

Gateway configuration example

gateway-msegat

Gateway configuration example

alertsms.ro

A Romanian gateway provider

Gateway configuration example

netgsm.com.tr

A turkish gateway provider

Gateway configuration example

thaibulksms.com

A thai gateway provider

Gateway configuration example

sms99.co.in

A thai gateway provider

Gateway configuration example

bulksms2u.com

A Malaysian gateway provider

Gateway configuration example

Documentation (PDF)

Conclusion

In this post we saw how to setup any gateway with the smshare module for opencart. If you have questions you can ask them in the comment section below or contact us.


comments powered by Disqus