-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -232,9 +232,9 @@ public function init_form_fields() | |
), | ||
'enable_c2b' => array( | ||
'title' => __('Manual Payments', 'woocommerce'), | ||
'label' => __('Enable C2B API', 'woocommerce'), | ||
'label' => __('Enable C2B API(Offline Payments)', 'woocommerce'), | ||
'type' => 'checkbox', | ||
'description' => '<small>' . (($this->get_option('idtype') == 4) ? 'This requires C2B Validation, which is an optional feature that needs to be activated on M-Pesa. <br>Request for activation by sending an email to <a href="mailto:[email protected]">[email protected]</a>, or through a chat on the <a href="https://developer.safaricom.co.ke/">developer portal.</a><br>Once enabled, ' : '') . '<a class="button button-secondary" href="' . home_url('wcpesa/register/') . '">Click here to register confirmation & validation URLs</a></small>', | ||
'description' => '<small>' . (($this->get_option('idtype') == 4) ? 'This requires C2B Validation, which is an optional feature that needs to be activated on M-Pesa. <br>Request for activation by sending an email to <a href="mailto:[email protected]">[email protected]</a>, or through a chat on the <a href="https://developer.safaricom.co.ke/">developer portal.</a><br>' : '') . '<a class="button button-secondary" href="' . home_url('wcpesa/register/') . '">Once enabled, click here to register confirmation & validation URLs</a><p>Kindly note that if this is disabled, the user can still resend an STK push if the first one fails.</p></small>', | ||
'default' => 'no', | ||
), | ||
// 'enable_b2c' => array( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,20 @@ | |
/** | ||
* @package Mpesa For WooCommerce | ||
* @author Osen Concepts < [email protected] > | ||
* @version 1.20.56 | ||
* @version 1.20.57 | ||
* | ||
* Plugin Name: MPesa For WooCommerce | ||
* Plugin URI: https://wc-mpesa.osen.co.ke/ | ||
* Description: This plugin extends WordPress and WooCommerce functionality to integrate <cite>Mpesa</cite> for making and receiving online payments. | ||
* Author: Osen Concepts Kenya < [email protected] > | ||
* Version: 1.20.56 | ||
* Version: 1.20.57 | ||
* Author URI: https://osen.co.ke/ | ||
* | ||
* Requires at least: 4.6 | ||
* Tested up to: 5.4 | ||
* | ||
* WC requires at least: 3.5.0 | ||
* WC tested up to: 4.0 | ||
* WC tested up to: 4.1 | ||
* | ||
* License: GPLv3 | ||
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | ||
|
@@ -140,8 +140,8 @@ function mpesa_row_meta($links, $file) | |
/** | ||
* Initialize all our custom post types | ||
*/ | ||
Osen\Post\Types\C2B::init(); | ||
//Osen\Post\Types\B2C::init(); | ||
Osen\Post\Types\C2B::init(); | ||
|
||
/** | ||
* Initialize our admin menus | ||
|
@@ -221,6 +221,9 @@ function mpesa_row_meta($links, $file) | |
require_once $filename; | ||
} | ||
|
||
/** | ||
* Auto-updates | ||
*/ | ||
require __DIR__ . '/updates/plugin-update-checker.php'; | ||
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker( | ||
'https://raw.githubusercontent.com/osenco/osen-wc-mpesa/master/updates.json', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters