Plugin Directory

Changeset 2391064


Ignore:
Timestamp:
09/30/2020 04:01:12 PM (5 years ago)
Author:
paybox
Message:

v0.9.9.9.1 various fixes and alignments

Location:
e-transactions-wc/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • e-transactions-wc/trunk/class/wc-etransactions-abstract-gateway.php

    r2240490 r2391064  
    227227     */
    228228    public function process_payment($orderId) {
    229         $order = new WC_Order($orderId);
     229        $order = wc_get_order($orderId);
    230230
    231231        $message = __('Customer is redirected to E-Transactions payment page', WC_ETRANSACTIONS_PLUGIN);
     
    239239
    240240    public function receipt_page($orderId) {
    241         $order = new WC_Order($orderId);
     241        $order = wc_get_order($orderId);
    242242
    243243        if (!is_multisite()) {
     
    342342                $message = __('Payment refused by E-Transactions', WC_ETRANSACTIONS_PLUGIN);
    343343                $this->_etransactions->addCartErrorMessage($message);
     344                $order->update_status('failed', $message);
    344345            }
    345346        } catch (Exception $e) {
     
    360361                $message = __('Payment canceled', WC_ETRANSACTIONS_PLUGIN);
    361362                $this->_etransactions->addCartErrorMessage($message);
     363                $order->update_status('failed', $message);
    362364            }
    363365        } catch (Exception $e) {
     
    463465                $error = $this->_etransactions->toErrorMessage($params['error']);
    464466                $message = sprintf($message, $error);
     467                $this->_etransactions->addOrderPayment($order, 'failed_payment', $params);
    465468                $this->_etransactions->addOrderNote($order, $message);
    466469            }
  • e-transactions-wc/trunk/class/wc-etransactions-threetime-gateway.php

    r2257349 r2391064  
    9898    }
    9999}
     100class WC_Etransactions_Threetime_GateWay extends WC_E3Gw{
     101    public function is_available() {
     102            return false;
     103    }
     104    public function receipt_page($orderId){
     105        return;
     106    }   
     107}
  • e-transactions-wc/trunk/readme.txt

    r2257353 r2391064  
    44Tags: Payment Gateway, Orders, woocommerce, e-commerce, payment, E-Transactions
    55Requires at least: 3.0.1
    6 Tested up to: 5.3.2
    7 Stable tag: 0.9.8.8
     6Tested up to: 5.5.1
     7Stable tag: 0.9.9.9.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010WC requires at least: 2.6
    11 WC tested up to: 3.9.1
     11WC tested up to: 4.5.2
    1212This plugin is a E-Transactions payment gateway for WooCommerce 2.x
    1313
     
    6868
    6969== Changelog ==
     70= 0.9.8.9 =
     71various fixes and alignments
     72
    7073= 0.9.8.9 =
    7174shortening long api names for plugin
  • e-transactions-wc/trunk/wc-etransactions.php

    r2257349 r2391064  
    33 * Plugin Name: E-Transactions
    44 * Description: E-Transactions gateway payment plugins for WooCommerce
    5  * Version: 0.9.8.9
     5 * Version: 0.9.9.9.1
    66 * Author: E-Transactions
    77 * Author URI: http://www.e-transactions.fr
     
    4242}
    4343    defined('WC_ETRANSACTIONS_PLUGIN') or define('WC_ETRANSACTIONS_PLUGIN', 'wc-etransactions');
    44     defined('WC_ETRANSACTIONS_VERSION') or define('WC_ETRANSACTIONS_VERSION', '0.9.8.7');
     44    defined('WC_ETRANSACTIONS_VERSION') or define('WC_ETRANSACTIONS_VERSION', '0.9.9.9.1');
    4545    defined('WC_ETRANSACTIONS_KEY_PATH') or define('WC_ETRANSACTIONS_KEY_PATH', ABSPATH . '/kek.php');
    4646
Note: See TracChangeset for help on using the changeset viewer.