Plugin Directory

Changeset 2587921


Ignore:
Timestamp:
08/24/2021 04:07:34 PM (5 years ago)
Author:
mstonys
Message:

v1.0.4 release is out

Location:
pay-with-mtn-momo-woocommerce
Files:
4 edited
8 copied

Legend:

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

    r2551577 r2587921  
    44Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce
    55Tested up to: 5.8
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires at least: 5.0
    88Requires PHP: 7.0
     
    155155== Changelog ==
    156156
     157= 1.0.4 =
     158* Support for Wordpress 5.8
     159* Fixed issues with multisite installations and payment status updates
     160
    157161= 1.0.3 =
    158162* Fixed setup issues for AWS Lightsail
  • pay-with-mtn-momo-woocommerce/tags/1.0.3/classes/class_momo_pay_gateway.php

    r2551538 r2587921  
    99    protected $version = 'BOxGzqSmyAu4XHD3DAgi';
    1010
    11     public $payments_table  = 'payments';
    1211    public $paid_status_name = 'paid';
    1312    public $failed_status_name = 'failed';
     
    4342        $this->method_title       = __('MTN MoMo for WooCommerce', $this->domain);
    4443        $this->method_description = __('To accept payments please configure your MTN MoMo settings', $this->domain);
    45         $this->payments_table = WC_MomoPay_Helper::getPaymentsTableName();
    4644
    4745        // gateways can support subscriptions, refunds, saved payment methods,
     
    6260        //later we will add this here this->getPaymentHintMessage
    6361        //Please ensure to use number format as follows: 2567xxxxxxxx and to have enough funds on your MoMo wallet to make payment instantly and avoid order cancellation.
    64         $this->description = $this->get_option( 'description',  __('Make sure to have enough funds on your MoMo wallet to make payment instantly and avoid order cancellation.', $this->domain) );
     62        $this->description = $this->get_option( 'description',  __('Make sure to have enough funds in your MoMo wallet to make payment instantly and avoid order cancellation.', $this->domain) );
    6563        $this->instructions = $this->get_option( 'instructions',
    6664            __('Place order and pay using MTN MoMo', $this->domain) );
     
    931929    protected function saveTransaction($data) {
    932930        global $wpdb;
     931
    933932        $wpdb->insert(
    934             $this->payments_table,
     933            WC_MomoPay_Helper::getPaymentsTableName(),
    935934            array(
    936935                'order_id' => $data['order_id'],
     
    957956       
    958957        $res = $wpdb->update(
    959             $this->payments_table,
     958            WC_MomoPay_Helper::getPaymentsTableName(),
    960959            $new_data,
    961960            array('payment_id' => $payment_id)
     
    965964            $order_id = $wpdb->get_var(
    966965                $wpdb->prepare(
    967                     "SELECT order_id FROM $this->payments_table WHERE payment_id = %s",
     966                    "SELECT order_id FROM ". WC_MomoPay_Helper::getPaymentsTableName() ." WHERE payment_id = %s",
    968967                    $payment_id) );
    969968
  • pay-with-mtn-momo-woocommerce/tags/1.0.3/classes/class_momo_pay_helper.php

    r2470497 r2587921  
    3838        global $wpdb;
    3939        $table_name = self::getPaymentsTableName();
     40       
    4041        $wpdb->query('DROP TABLE ' . $table_name);
    4142       
  • pay-with-mtn-momo-woocommerce/trunk/README.txt

    r2551577 r2587921  
    44Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce
    55Tested up to: 5.8
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires at least: 5.0
    88Requires PHP: 7.0
     
    155155== Changelog ==
    156156
     157= 1.0.4 =
     158* Support for Wordpress 5.8
     159* Fixed issues with multisite installations and payment status updates
     160
    157161= 1.0.3 =
    158162* Fixed setup issues for AWS Lightsail
  • pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php

    r2551538 r2587921  
    99    protected $version = 'BOxGzqSmyAu4XHD3DAgi';
    1010
    11     public $payments_table  = 'payments';
    1211    public $paid_status_name = 'paid';
    1312    public $failed_status_name = 'failed';
     
    4342        $this->method_title       = __('MTN MoMo for WooCommerce', $this->domain);
    4443        $this->method_description = __('To accept payments please configure your MTN MoMo settings', $this->domain);
    45         $this->payments_table = WC_MomoPay_Helper::getPaymentsTableName();
    4644
    4745        // gateways can support subscriptions, refunds, saved payment methods,
     
    6260        //later we will add this here this->getPaymentHintMessage
    6361        //Please ensure to use number format as follows: 2567xxxxxxxx and to have enough funds on your MoMo wallet to make payment instantly and avoid order cancellation.
    64         $this->description = $this->get_option( 'description',  __('Make sure to have enough funds on your MoMo wallet to make payment instantly and avoid order cancellation.', $this->domain) );
     62        $this->description = $this->get_option( 'description',  __('Make sure to have enough funds in your MoMo wallet to make payment instantly and avoid order cancellation.', $this->domain) );
    6563        $this->instructions = $this->get_option( 'instructions',
    6664            __('Place order and pay using MTN MoMo', $this->domain) );
     
    931929    protected function saveTransaction($data) {
    932930        global $wpdb;
     931
    933932        $wpdb->insert(
    934             $this->payments_table,
     933            WC_MomoPay_Helper::getPaymentsTableName(),
    935934            array(
    936935                'order_id' => $data['order_id'],
     
    957956       
    958957        $res = $wpdb->update(
    959             $this->payments_table,
     958            WC_MomoPay_Helper::getPaymentsTableName(),
    960959            $new_data,
    961960            array('payment_id' => $payment_id)
     
    965964            $order_id = $wpdb->get_var(
    966965                $wpdb->prepare(
    967                     "SELECT order_id FROM $this->payments_table WHERE payment_id = %s",
     966                    "SELECT order_id FROM ". WC_MomoPay_Helper::getPaymentsTableName() ." WHERE payment_id = %s",
    968967                    $payment_id) );
    969968
  • pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_helper.php

    r2470497 r2587921  
    3838        global $wpdb;
    3939        $table_name = self::getPaymentsTableName();
     40       
    4041        $wpdb->query('DROP TABLE ' . $table_name);
    4142       
Note: See TracChangeset for help on using the changeset viewer.