WP Manifestindependent plugin directory
manifest / ecommerce / selcom-push-wp

Selcom Push WP

A plugin providing a custom solution to enable mobile payments integration via Selcom USSD Push for WordPress websites running on WooCommerce.

★ 6stars
25release downloads
1.0.2latest · 5 years ago

Install

Download epush-v1.0.2.zip From the 1.0.2 release on GitHub, Apr 20, 2021

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wallace-stev/selcom-push-wp/releases/download/1.0.2/epush-v1.0.2.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A plugin providing a custom solution to enable mobile payments integration via Selcom USSD Push for WordPress websites running on WooCommerce.

Motivation

This plugin comes to provide a comprehensive solution to mobile payments integration for local e-commerce service providers as the demand increases. We found that several developers struggle when it comes to these necessary yet unmet provisions serving as tools to simplify such works.

Prerequisites

Before one choses this tool for their particular project(s), it is necessary for them to have developer-level understanding of PHP (Preferrably 7.4 and above), WordPress, WooCommerce, and using API(s) as it may come in handy when facing problems. Also, they should contact Selcom and request for merchant account for them to get necessary information such as security tokens and others required to make this plugin work successfully.

Code style

A guide for those wanting to contribute to the project and make improvements to the code.

Languages used

Features

  • Send direct USSD Push notification to client's mobile
  • Simplified checkout procedure, with order status updates as payments occur

Code

This plugin makes use of cURL to send HTTP POST requests.
Sample code:

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    if($isPost){
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
    }
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch,CURLOPT_TIMEOUT,90);
    $result = curl_exec($ch);
    curl_close($ch);

Alternatively, one might prefer using the WordPress HTTP API to do so (click the link to see documentation).

Installation & Usage

Just download the files and install to your website as you would for any WordPress plugin. Activate the plugin then go to WooCommerce payment settings and provide the API Key, API Secret, Merchant ID & API URL values with the ones provided by Selcom upon merchant account provision. Finally, activate the payment option, test it and if no errors occur, change to the production URL and you're set to receive mobile payments to your merchant wallet.

API Reference

License

Sample Websites

Disclaimer & Copyrights

Selcom and the Selcom Logo are registered trademarks of Selcom Paytech LTD.

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
1.0.2 latest
Apr 20, 2021 5 years ago
epush-v1.0.2.zip
25