Changeset 2486245
- Timestamp:
- 03/03/2021 11:46:45 PM (5 years ago)
- Location:
- pay-with-mtn-momo-woocommerce/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (6 diffs)
-
classes/class_momo_pay_gateway.php (modified) (1 diff)
-
mtn-momo-pay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pay-with-mtn-momo-woocommerce/trunk/README.txt
r2472470 r2486245 3 3 Donate link: https://www.clickon.ch 4 4 Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce 5 Tested up to: 5. 6.16 Stable tag: 1.0. 05 Tested up to: 5.7 6 Stable tag: 1.0.1 7 7 Requires at least: 5.0 8 8 Requires PHP: 7.0 … … 46 46 4. Test payments in the Sandbox **only EUR currency** 47 47 48 **IMPORTANT for Rwanda** use `https://momodeveloper.mtn.co.rw` to sign-up and get the keys! 49 48 50 ==== Plugin setup for MTN MoMo Live - with real payments 💰😎 ==== 49 51 … … 55 57 6. Accept payments! 💰💰💰 56 58 59 **IMPORTANT for Rwanda** use `https://momodeveloper.mtn.co.rw/go-live` to go Live! 57 60 58 61 ==== Supported currencies ==== … … 127 130 * 233204701XXX - Ghana 128 131 * 256700908XXX - Uganda 132 * 268782XXXXX - Eswatini 129 133 130 134 No "+" in front and always with the country code! 135 136 = For Rwanda can i use momodeveloper.mtn.com to get Sandbox primary key? = 137 138 In case you are in Rwanda you should use a dedicated portal at https://momodeveloper.mtn.co.rw, however if you 139 set your WooCommerce store location to anything but Rwanda you can use Sandbox Primary key from https://momodeveloper.mtn.com 131 140 132 141 == Screenshots == … … 138 147 == Changelog == 139 148 149 = 1.0.1 = 150 * Tested with Wordpress 5.7 151 * Fixed PHP notices 152 * Support for Rwanda portal momodeveloper.mtn.co.rw 153 140 154 = 1.0.0 = 141 155 * Our first version with MTN MoMo Live and Sandbox, Collection API is fully supported … … 143 157 == Upgrade Notice == 144 158 159 = 1.0.1 = 160 * Tested with Wordpress 5.7 161 * Fixed PHP notices 162 * Support for Rwanda portal momodeveloper.mtn.co.rw 163 145 164 = 1.0.0 = 146 165 * 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 7 7 protected $sanbox_api_user_key = ''; 8 8 protected $wc_field_pref = 'woocommerce_momopay_'; 9 protected $version = ' y1J0zOYZDpjOXchR9lx8';9 protected $version = 'BOxGzqSmyAu4XHD3DAgi'; 10 10 11 11 public $payments_table = 'payments'; -
pay-with-mtn-momo-woocommerce/trunk/mtn-momo-pay.php
r2472470 r2486245 4 4 * Plugin URI: https://www.clickon.ch 5 5 * Description: Accept payments over MTN MoMo in WooCommerce 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: mstonys 8 8 * Author URI: https://profiles.wordpress.org/mstonys/ … … 123 123 add_action( 'woocommerce_check_cart_items', 'show_momo_errors_in_the_cart' ); 124 124 function show_momo_errors_in_the_cart() { 125 $momoPaymentId = sanitize_text_field( $_GET['momo_payment_id'] );126 125 if ( isset($_GET['momo_payment_id']) ) { 126 $momoPaymentId = sanitize_text_field( $_GET['momo_payment_id'] ); 127 127 wc_print_notice( sprintf( __("MTN MoMo payment %s failed. Please try again.", "mtn-momo-pay"), $momoPaymentId), 'error' ); 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.