Changeset 2587921
- Timestamp:
- 08/24/2021 04:07:34 PM (5 years ago)
- Location:
- pay-with-mtn-momo-woocommerce
- Files:
-
- 4 edited
- 8 copied
-
tags/1.0.3 (copied) (copied from pay-with-mtn-momo-woocommerce/trunk)
-
tags/1.0.3/LICENSE.txt (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/LICENSE.txt)
-
tags/1.0.3/README.txt (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/README.txt) (2 diffs)
-
tags/1.0.3/assets (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/assets)
-
tags/1.0.3/classes (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/classes)
-
tags/1.0.3/classes/class_momo_pay_gateway.php (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php) (6 diffs)
-
tags/1.0.3/classes/class_momo_pay_helper.php (modified) (1 diff)
-
tags/1.0.3/classes/class_momo_pay_view.php (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_view.php)
-
tags/1.0.3/mtn-momo-pay.php (copied) (copied from pay-with-mtn-momo-woocommerce/trunk/mtn-momo-pay.php)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/classes/class_momo_pay_gateway.php (modified) (6 diffs)
-
trunk/classes/class_momo_pay_helper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pay-with-mtn-momo-woocommerce/tags/1.0.3/README.txt
r2551577 r2587921 4 4 Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce 5 5 Tested up to: 5.8 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires at least: 5.0 8 8 Requires PHP: 7.0 … … 155 155 == Changelog == 156 156 157 = 1.0.4 = 158 * Support for Wordpress 5.8 159 * Fixed issues with multisite installations and payment status updates 160 157 161 = 1.0.3 = 158 162 * Fixed setup issues for AWS Lightsail -
pay-with-mtn-momo-woocommerce/tags/1.0.3/classes/class_momo_pay_gateway.php
r2551538 r2587921 9 9 protected $version = 'BOxGzqSmyAu4XHD3DAgi'; 10 10 11 public $payments_table = 'payments';12 11 public $paid_status_name = 'paid'; 13 12 public $failed_status_name = 'failed'; … … 43 42 $this->method_title = __('MTN MoMo for WooCommerce', $this->domain); 44 43 $this->method_description = __('To accept payments please configure your MTN MoMo settings', $this->domain); 45 $this->payments_table = WC_MomoPay_Helper::getPaymentsTableName();46 44 47 45 // gateways can support subscriptions, refunds, saved payment methods, … … 62 60 //later we will add this here this->getPaymentHintMessage 63 61 //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) ); 65 63 $this->instructions = $this->get_option( 'instructions', 66 64 __('Place order and pay using MTN MoMo', $this->domain) ); … … 931 929 protected function saveTransaction($data) { 932 930 global $wpdb; 931 933 932 $wpdb->insert( 934 $this->payments_table,933 WC_MomoPay_Helper::getPaymentsTableName(), 935 934 array( 936 935 'order_id' => $data['order_id'], … … 957 956 958 957 $res = $wpdb->update( 959 $this->payments_table,958 WC_MomoPay_Helper::getPaymentsTableName(), 960 959 $new_data, 961 960 array('payment_id' => $payment_id) … … 965 964 $order_id = $wpdb->get_var( 966 965 $wpdb->prepare( 967 "SELECT order_id FROM $this->payments_tableWHERE payment_id = %s",966 "SELECT order_id FROM ". WC_MomoPay_Helper::getPaymentsTableName() ." WHERE payment_id = %s", 968 967 $payment_id) ); 969 968 -
pay-with-mtn-momo-woocommerce/tags/1.0.3/classes/class_momo_pay_helper.php
r2470497 r2587921 38 38 global $wpdb; 39 39 $table_name = self::getPaymentsTableName(); 40 40 41 $wpdb->query('DROP TABLE ' . $table_name); 41 42 -
pay-with-mtn-momo-woocommerce/trunk/README.txt
r2551577 r2587921 4 4 Tags: MTN MoMo, MoMo, payment, MTN, payment gateway, mobile money, WooCommerce 5 5 Tested up to: 5.8 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 Requires at least: 5.0 8 8 Requires PHP: 7.0 … … 155 155 == Changelog == 156 156 157 = 1.0.4 = 158 * Support for Wordpress 5.8 159 * Fixed issues with multisite installations and payment status updates 160 157 161 = 1.0.3 = 158 162 * Fixed setup issues for AWS Lightsail -
pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_gateway.php
r2551538 r2587921 9 9 protected $version = 'BOxGzqSmyAu4XHD3DAgi'; 10 10 11 public $payments_table = 'payments';12 11 public $paid_status_name = 'paid'; 13 12 public $failed_status_name = 'failed'; … … 43 42 $this->method_title = __('MTN MoMo for WooCommerce', $this->domain); 44 43 $this->method_description = __('To accept payments please configure your MTN MoMo settings', $this->domain); 45 $this->payments_table = WC_MomoPay_Helper::getPaymentsTableName();46 44 47 45 // gateways can support subscriptions, refunds, saved payment methods, … … 62 60 //later we will add this here this->getPaymentHintMessage 63 61 //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) ); 65 63 $this->instructions = $this->get_option( 'instructions', 66 64 __('Place order and pay using MTN MoMo', $this->domain) ); … … 931 929 protected function saveTransaction($data) { 932 930 global $wpdb; 931 933 932 $wpdb->insert( 934 $this->payments_table,933 WC_MomoPay_Helper::getPaymentsTableName(), 935 934 array( 936 935 'order_id' => $data['order_id'], … … 957 956 958 957 $res = $wpdb->update( 959 $this->payments_table,958 WC_MomoPay_Helper::getPaymentsTableName(), 960 959 $new_data, 961 960 array('payment_id' => $payment_id) … … 965 964 $order_id = $wpdb->get_var( 966 965 $wpdb->prepare( 967 "SELECT order_id FROM $this->payments_tableWHERE payment_id = %s",966 "SELECT order_id FROM ". WC_MomoPay_Helper::getPaymentsTableName() ." WHERE payment_id = %s", 968 967 $payment_id) ); 969 968 -
pay-with-mtn-momo-woocommerce/trunk/classes/class_momo_pay_helper.php
r2470497 r2587921 38 38 global $wpdb; 39 39 $table_name = self::getPaymentsTableName(); 40 40 41 $wpdb->query('DROP TABLE ' . $table_name); 41 42
Note: See TracChangeset
for help on using the changeset viewer.