Plugin Directory

Changeset 2719832


Ignore:
Timestamp:
05/07/2022 10:54:25 AM (4 years ago)
Author:
mstonys
Message:

Tagging the 1.0.5 release

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

Legend:

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

    r2718785 r2719832  
    33Donate link: https://www.clickon.ch
    44Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce
    5 Tested up to: 5.9.3
    6 Stable tag: 1.0.4
     5Tested up to: 6.0
     6Stable tag: 1.0.5
    77Requires at least: 5.0
    88Requires PHP: 7.0
     
    155155== Changelog ==
    156156
     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
    157162= 1.0.4 =
    158163* Removed request count
  • pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php

    r2718785 r2719832  
    1212        'CDF',
    1313        'SZL',
    14         'GNF', 'ZAR', 'LRD');
     14        'GNF', 'ZAR', 'LRD', 'USD');
    1515    protected static $live_currencies = array(
    1616        'UGX',
     
    762762    protected function preparePaymentData($order) {
    763763        return array(
    764             'amount' => (int) $order->order_total,
     764            'amount' => (float)$order->get_total(),
    765765            'note' => 'Order ' . $order->get_order_number(),
    766766            'payer' => $this->cleanPhone($order->billing_phone)
     
    814814            $payment_id = (@$payment_result->paymentId) ? $payment_result->paymentId : null;
    815815            if($payment_id) {
     816                $total_amount_to_save = ((float)$order->get_total())*100;
     817
    816818                $trn = array(
    817819                    'order_id' => $order_id,
    818                     'amount' => $order->order_total,
     820                    'amount' => (int)$total_amount_to_save,
    819821                    'phone_number' => $prepare_order['payer'],
    820822                    'payment_id' => $payment_result->paymentId,
     
    823825                );
    824826                $this->saveTransaction($trn);           
    825             };
     827            } else {
     828
     829            }
    826830
    827831            if ($order->get_payment_method() == 'momopay') {
  • pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_helper.php

    r2587921 r2719832  
    2929                PRIMARY KEY  (id)
    3030                ) $charset_collate;
    31         ");     
     31        ");
    3232   
    3333        add_option( self::getPaymentsTableVersionName(), $payments_db_version );
  • pay-with-mtn-momo-woocommerce/trunk/mtn-momo-pay.php

    r2718785 r2719832  
    44* Plugin URI: https://www.clickon.ch
    55* Description: Accept payments with MTN MoMo in WooCommerce
    6 * Version: 1.0.4
     6* Version: 1.0.5
    77* Author: mstonys
    88* Author URI: https://profiles.wordpress.org/mstonys/
    99* Licence: GPL2
    1010* Text Domain: mtn-momo-pay
    11 * Tested up to: 5.9.3
     11* Tested up to: 6.0
    1212* Stable tag: 5.0
    1313* WC requires at least: 4.2.0
Note: See TracChangeset for help on using the changeset viewer.