Changeset 2719832
- Timestamp:
- 05/07/2022 10:54:25 AM (4 years ago)
- Location:
- pay-with-mtn-momo-woocommerce/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
classes/class_momo_pay_gateway.php (modified) (4 diffs)
-
classes/class_momo_pay_helper.php (modified) (1 diff)
-
mtn-momo-pay.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pay-with-mtn-momo-woocommerce/trunk/README.txt
r2718785 r2719832 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.9.36 Stable tag: 1.0. 45 Tested up to: 6.0 6 Stable tag: 1.0.5 7 7 Requires at least: 5.0 8 8 Requires PHP: 7.0 … … 155 155 == Changelog == 156 156 157 = 1.0.5 = 158 * Wordpress 6.0 support added 159 * Fixes order with floating point amounts like 0.2 USD etc. 160 * Fixes for Liberia to support both USD and LRD currencies 161 157 162 = 1.0.4 = 158 163 * Removed request count -
pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php
r2718785 r2719832 12 12 'CDF', 13 13 'SZL', 14 'GNF', 'ZAR', 'LRD' );14 'GNF', 'ZAR', 'LRD', 'USD'); 15 15 protected static $live_currencies = array( 16 16 'UGX', … … 762 762 protected function preparePaymentData($order) { 763 763 return array( 764 'amount' => ( int) $order->order_total,764 'amount' => (float)$order->get_total(), 765 765 'note' => 'Order ' . $order->get_order_number(), 766 766 'payer' => $this->cleanPhone($order->billing_phone) … … 814 814 $payment_id = (@$payment_result->paymentId) ? $payment_result->paymentId : null; 815 815 if($payment_id) { 816 $total_amount_to_save = ((float)$order->get_total())*100; 817 816 818 $trn = array( 817 819 'order_id' => $order_id, 818 'amount' => $order->order_total,820 'amount' => (int)$total_amount_to_save, 819 821 'phone_number' => $prepare_order['payer'], 820 822 'payment_id' => $payment_result->paymentId, … … 823 825 ); 824 826 $this->saveTransaction($trn); 825 }; 827 } else { 828 829 } 826 830 827 831 if ($order->get_payment_method() == 'momopay') { -
pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_helper.php
r2587921 r2719832 29 29 PRIMARY KEY (id) 30 30 ) $charset_collate; 31 "); 31 "); 32 32 33 33 add_option( self::getPaymentsTableVersionName(), $payments_db_version ); -
pay-with-mtn-momo-woocommerce/trunk/mtn-momo-pay.php
r2718785 r2719832 4 4 * Plugin URI: https://www.clickon.ch 5 5 * Description: Accept payments with MTN MoMo in WooCommerce 6 * Version: 1.0. 46 * Version: 1.0.5 7 7 * Author: mstonys 8 8 * Author URI: https://profiles.wordpress.org/mstonys/ 9 9 * Licence: GPL2 10 10 * Text Domain: mtn-momo-pay 11 * Tested up to: 5.9.311 * Tested up to: 6.0 12 12 * Stable tag: 5.0 13 13 * WC requires at least: 4.2.0
Note: See TracChangeset
for help on using the changeset viewer.