Plugin Directory

Changeset 2486245


Ignore:
Timestamp:
03/03/2021 11:46:45 PM (5 years ago)
Author:
mstonys
Message:

Release 1.0.1

Location:
pay-with-mtn-momo-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pay-with-mtn-momo-woocommerce/trunk/README.txt

    r2472470 r2486245  
    33Donate link: https://www.clickon.ch
    44Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce
    5 Tested up to: 5.6.1
    6 Stable tag: 1.0.0
     5Tested up to: 5.7
     6Stable tag: 1.0.1
    77Requires at least: 5.0
    88Requires PHP: 7.0
     
    46464. Test payments in the Sandbox **only EUR currency**
    4747
     48**IMPORTANT for Rwanda** use `https://momodeveloper.mtn.co.rw` to sign-up and get the keys!
     49
    4850==== Plugin setup for MTN MoMo Live - with real payments 💰😎 ====
    4951
     
    55576. Accept payments! 💰💰💰
    5658
     59**IMPORTANT for Rwanda** use `https://momodeveloper.mtn.co.rw/go-live` to go Live!
    5760
    5861==== Supported currencies ====
     
    127130* 233204701XXX - Ghana
    128131* 256700908XXX - Uganda
     132* 268782XXXXX - Eswatini
    129133
    130134No "+" in front and always with the country code!
     135
     136= For Rwanda can i use momodeveloper.mtn.com to get Sandbox primary key? =
     137
     138In case you are in Rwanda you should use a dedicated portal at https://momodeveloper.mtn.co.rw, however if you
     139set your WooCommerce store location to anything but Rwanda you can use Sandbox Primary key from https://momodeveloper.mtn.com
    131140
    132141== Screenshots ==
     
    138147== Changelog ==
    139148
     149= 1.0.1 =
     150* Tested with Wordpress 5.7
     151* Fixed PHP notices
     152* Support for Rwanda portal momodeveloper.mtn.co.rw 
     153
    140154= 1.0.0 =
    141155* Our first version with MTN MoMo Live and Sandbox, Collection API is fully supported
     
    143157== Upgrade Notice ==
    144158
     159= 1.0.1 =
     160* Tested with Wordpress 5.7
     161* Fixed PHP notices
     162* Support for Rwanda portal momodeveloper.mtn.co.rw
     163
    145164= 1.0.0 =
    146165* Our first version with MTN MoMo Live and Sandbox, Collection API is fully supported
  • pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php

    r2470497 r2486245  
    77    protected $sanbox_api_user_key = '';
    88    protected $wc_field_pref  = 'woocommerce_momopay_';
    9     protected $version = 'y1J0zOYZDpjOXchR9lx8';
     9    protected $version = 'BOxGzqSmyAu4XHD3DAgi';
    1010
    1111    public $payments_table  = 'payments';
  • pay-with-mtn-momo-woocommerce/trunk/mtn-momo-pay.php

    r2472470 r2486245  
    44* Plugin URI: https://www.clickon.ch
    55* Description: Accept payments over MTN MoMo in WooCommerce
    6 * Version: 1.0.0
     6* Version: 1.0.1
    77* Author: mstonys
    88* Author URI: https://profiles.wordpress.org/mstonys/
     
    123123add_action( 'woocommerce_check_cart_items', 'show_momo_errors_in_the_cart' );
    124124function show_momo_errors_in_the_cart() {
    125     $momoPaymentId = sanitize_text_field( $_GET['momo_payment_id'] );
    126125    if ( isset($_GET['momo_payment_id']) ) {
     126        $momoPaymentId = sanitize_text_field( $_GET['momo_payment_id'] );
    127127        wc_print_notice( sprintf( __("MTN MoMo payment %s failed. Please try again.", "mtn-momo-pay"),  $momoPaymentId), 'error' );
    128128    }
Note: See TracChangeset for help on using the changeset viewer.