Plugin Directory

Changeset 2709954


Ignore:
Timestamp:
04/14/2022 07:47:26 PM (4 years ago)
Author:
paybright
Message:

v2.0.0 released

Location:
paybright
Files:
18 added
2 edited

Legend:

Unmodified
Added
Removed
  • paybright/trunk/PayBright.php

    r2625118 r2709954  
    44 * Plugin URI: https://paybright.com/
    55 * Description: PayBright Payment Gateway - Woocommerce Payment Method.
    6  * Version: 1.0.15
     6 * Version: 2.0.0
    77 * Author: PayBright
    88 * Author URI: https://paybright.com/en/company
     
    1111 * License: GPLv2 or later
    1212 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
     13 * PayBright Plugin is free software: you can redistribute it and/or modify it
     14 * under the terms of the GNU General Public License as published by the Free Software Foundation,
     15 * either version 2 of the License or (at your option) any later version.
     16 *
     17 * This program is distributed in the hope that it will be useful,
     18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
     20 * the GNU General Public License for more details.
     21 *
     22 * You should have received a copy of the GNU General Public License
     23 * along with this program. If not, see <http://www.gnu.org/licenses/>
     24 * You can contact us at info@paybright.com
     25 *
     26 * Copyright (c) 2020, Health Smart Financial Services Inc.
     27 *
     28 * @class WC_Gateway_Paybright
     29 * @package Paybright
    1330 */
    1431
    15  /**
    16   * PayBright Plugin is free software: you can redistribute it and/or modify it
    17   * under the terms of the GNU General Public License as published by the Free Software Foundation,
    18   * either version 2 of the License or (at your option) any later version.
    19   *
    20   * This program is distributed in the hope that it will be useful,
    21   * but WITHOUT ANY WARRANTY; without even the implied warranty of
    22   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
    23   * the GNU General Public License for more details.
    24   *
    25   * You should have received a copy of the GNU General Public License
    26   * along with this program. If not, see <http://www.gnu.org/licenses/>
    27   * You can contact us at info@paybright.com
    28   *
    29   * Copyright (c) 2020, Health Smart Financial Services Inc.
    30   */
    31  
    32 
    33 if (!defined('ABSPATH')) {
    34     exit; // Exit if accessed directly
     32if ( ! defined( 'ABSPATH' ) ) {
     33    exit;
    3534}
    3635
    3736/**
    38  * Check if WooCommerce is active
    39  **/
     37 * Required functions and classes.
     38 */
     39if ( ! function_exists( 'woothemes_queue_update' ) ) {
     40    include_once 'woo-includes/class-woothemes-plugin-updater.php';
     41}
    4042
     43// Include the main WooCommerce class.
     44if ( ! class_exists( 'WooCommerce_Gateway_Paybright', false ) ) {
     45    include_once dirname( __FILE__ ) . '/class-woocommerce-gateway-paybright.php';
     46}
    4147
    42 if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
    43     add_filter('woocommerce_payment_gateways', 'add_paybright_payment_gateway');
    44     function add_paybright_payment_gateway($gateways)
    45     {
    46         $gateways[] = 'WC_PayBright_Payment_Gateway';
    47         return $gateways;
    48     }
    49     function init_paybright_payment_gateway()
    50     {
    51         require 'WCGatewayPayBright.php';
    52     }
    53     add_action('plugins_loaded', 'init_paybright_payment_gateway', 0);
     48/**
     49 * Returns Paybright.
     50 */
     51function paybright() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid.
     52    return WooCommerce_Gateway_Paybright::get_instance();
    5453}
     54
     55/**
     56 * Load Paybright.
     57 */
     58$GLOBALS['wc_paybright_loader'] = paybright();
  • paybright/trunk/readme.txt

    r2625118 r2709954  
    33Tags: ecommerce, e-commerce, commerce, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, transaction
    44Requires WooCommerce atleast: Version 2.5
    5 Tested up to: 5.7.1
    6 Stable tag: 1.0.15
     5Tested up to: 6.3.0
     6Stable tag: 2.0.0
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9292= 1.0.15 - 05/11/2021 =
    9393* WooCommerce callback fraud fixes
     94= 2.0.0 - 14/04/2022 =
     95* Support added for WooCommerce 6.3
Note: See TracChangeset for help on using the changeset viewer.