diff --git a/inc/functions.php b/inc/functions.php index a0dc86d..2539327 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -42,96 +42,96 @@ function wc_mpesa_process_order($order) $reference = $order_id; } - $type = ($idtype == 4) ? 'Pay Bill' : 'Buy Goods and Services';?> - -
- - -

Confirming receipt, please wait

-
- - -
- - - - - - - - - - - - - - - -
- -
-
    -
  1. Select Lipa na M-PESA.
  2. -
  3. Select .
  4. - -
  5. Enter as business no.
  6. -
  7. Enter as Account no.
  8. - -
  9. Enter as till no.
  10. - -
  11. Enter Amount .
  12. -
  13. Enter your M-PESA PIN
  14. -
  15. Confirm your details and press OK.
  16. -
  17. Wait for a confirmation message from M-PESA.
  18. -
- -
-
" mhod="POST" id="renitiate-form"> - - -
-
-
+ $type = ($idtype == 4) ? 'Pay Bill' : 'Buy Goods and Services'; ?> + +
+ + +

Confirming receipt, please wait

+
+ + +
+ + + + + + + + + + + + + + + +
+ +
+
    +
  1. Select Lipa na M-PESA.
  2. +
  3. Select .
  4. + +
  5. Enter as business no.
  6. +
  7. Enter as Account no.
  8. + +
  9. Enter as till no.
  10. + +
  11. Enter Amount .
  12. +
  13. Enter your M-PESA PIN
  14. +
  15. Confirm your details and press OK.
  16. +
  17. Wait for a confirmation message from M-PESA.
  18. +
+ +
+
" mhod="POST" id="renitiate-form"> + + +
+
+
update_status('cancelled'); + $order->update_status('on-hold'); $order->add_order_note(__("MPesa Error {$resultCode}: {$resultDesc}")); } diff --git a/inc/wc_mpesa_gateway.php b/inc/wc_mpesa_gateway.php index 5d098a8..d8b6eff 100755 --- a/inc/wc_mpesa_gateway.php +++ b/inc/wc_mpesa_gateway.php @@ -1,7 +1,7 @@ * @since 0.18.01 @@ -169,6 +169,13 @@ public function init_form_fields() 'default' => __('bfb279f9aa9bdbcf158e97dd71a467cd2e0c893059b10f78e6b72ada1ed2c919', 'woocommerce'), 'desc_tip' => true, ), + 'resend' => array( + 'title' => __('Resend STK Button Text', 'woocommerce'), + 'type' => 'text', + 'description' => __('Text description for resend STK prompt button', 'woocommerce'), + 'default' => __('Resend STK Push', 'woocommerce'), + 'desc_tip' => true, + ), 'description' => array( 'title' => __('Method Description', 'woocommerce'), 'type' => 'textarea', diff --git a/osen-wc-mpesa.php b/osen-wc-mpesa.php index c24fba8..00a15d3 100755 --- a/osen-wc-mpesa.php +++ b/osen-wc-mpesa.php @@ -3,13 +3,13 @@ /** * @package Mpesa For WooCommerce * @author Osen Concepts < hi@osen.co.ke > - * @version 1.20.77 + * @version 1.20.78 * * Plugin Name: MPesa For WooCommerce * Plugin URI: https://wc-mpesa.osen.co.ke/ * Description: This plugin extends WordPress and WooCommerce functionality to integrate Mpesa for making and receiving online payments. * Author: Osen Concepts Kenya < hi@osen.co.ke > - * Version: 1.20.77 + * Version: 1.20.78 * Author URI: https://osen.co.ke/ * * Requires at least: 4.6 @@ -42,7 +42,7 @@ exit; } -define('WCM_VER', '1.20.5'); +define('WCM_VER', '1.20.7'); if (!defined('WCM_PLUGIN_FILE')) { define('WCM_PLUGIN_FILE', __FILE__); } diff --git a/updates.json b/updates.json index 76bfb62..1e44c64 100644 --- a/updates.json +++ b/updates.json @@ -1,12 +1,12 @@ { "name": "Mpesa for Woocommerce", - "version": "1.20.77", - "download_url": "https://github.com/osenco/osen-wc-mpesa/archive/v1.20.77.zip", + "version": "1.20.78", + "download_url": "https://github.com/osenco/osen-wc-mpesa/archive/v1.20.78.zip", "homepage": "https://wc-mpesa.osen.co.ke/", "requires": "4.5", "tested": "5.4", - "last_updated": "2020-07-17 12:00:00", + "last_updated": "2020-07-18 12:00:00", "upgrade_notice": "Autoupdates from here on", "author": "Osen Concepts", @@ -15,7 +15,7 @@ "sections": { "description": "

This plugin seeks to provide a simple plug-n-play implementation for integrating M-Pesa Payments into online stores built with WooCommerce and WordPress.

", "installation": "Download the latest release from Github, and extract the zip file in your plugins directory of your WordPress instalation", - "changelog": "", + "changelog": "", "going_live": "

While we have made all efforts to ensure this plugin works out of the box - with minimum configuration required - the service provider requires that the user go through a certain ardous process to migrate from sandbox(test) environment to production.

We have made a tutorial here to walk you through the process. We however have a team ready on call to assist you in this are, at a fiat fee of KSh 4000 one-off, should you find it difficult.

" }, @@ -32,6 +32,6 @@ "rating": 90, "num_ratings": 1070, - "downloaded": 929, - "active_installs": 845 + "downloaded": 1009, + "active_installs": 1005 } \ No newline at end of file