Changeset 2709954
- Timestamp:
- 04/14/2022 07:47:26 PM (4 years ago)
- Location:
- paybright
- Files:
-
- 18 added
- 2 edited
-
tags/2.0.0/class-woocommerce-gateway-paybright.php (added)
-
tags/2.0.0/includes (added)
-
tags/2.0.0/includes/class-wc-gateway-paybright.php (added)
-
tags/2.0.0/includes/res (added)
-
tags/2.0.0/includes/res/images (added)
-
tags/2.0.0/includes/res/images/pb.png (added)
-
tags/2.0.0/woo-includes (added)
-
tags/2.0.0/woo-includes/class-wc-dependencies.php (added)
-
tags/2.0.0/woo-includes/class-woothemes-plugin-updater.php (added)
-
trunk/PayBright.php (modified) (2 diffs)
-
trunk/class-woocommerce-gateway-paybright.php (added)
-
trunk/includes (added)
-
trunk/includes/class-wc-gateway-paybright.php (added)
-
trunk/includes/res (added)
-
trunk/includes/res/images (added)
-
trunk/includes/res/images/pb.png (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/woo-includes (added)
-
trunk/woo-includes/class-wc-dependencies.php (added)
-
trunk/woo-includes/class-woothemes-plugin-updater.php (added)
Legend:
- Unmodified
- Added
- Removed
-
paybright/trunk/PayBright.php
r2625118 r2709954 4 4 * Plugin URI: https://paybright.com/ 5 5 * Description: PayBright Payment Gateway - Woocommerce Payment Method. 6 * Version: 1.0.156 * Version: 2.0.0 7 7 * Author: PayBright 8 8 * Author URI: https://paybright.com/en/company … … 11 11 * License: GPLv2 or later 12 12 * 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 13 30 */ 14 31 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 32 if ( ! defined( 'ABSPATH' ) ) { 33 exit; 35 34 } 36 35 37 36 /** 38 * Check if WooCommerce is active 39 **/ 37 * Required functions and classes. 38 */ 39 if ( ! function_exists( 'woothemes_queue_update' ) ) { 40 include_once 'woo-includes/class-woothemes-plugin-updater.php'; 41 } 40 42 43 // Include the main WooCommerce class. 44 if ( ! class_exists( 'WooCommerce_Gateway_Paybright', false ) ) { 45 include_once dirname( __FILE__ ) . '/class-woocommerce-gateway-paybright.php'; 46 } 41 47 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 */ 51 function paybright() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid. 52 return WooCommerce_Gateway_Paybright::get_instance(); 54 53 } 54 55 /** 56 * Load Paybright. 57 */ 58 $GLOBALS['wc_paybright_loader'] = paybright(); -
paybright/trunk/readme.txt
r2625118 r2709954 3 3 Tags: ecommerce, e-commerce, commerce, wordpress ecommerce, store, sales, sell, shop, shopping, cart, checkout, transaction 4 4 Requires WooCommerce atleast: Version 2.5 5 Tested up to: 5.7.16 Stable tag: 1.0.155 Tested up to: 6.3.0 6 Stable tag: 2.0.0 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 92 92 = 1.0.15 - 05/11/2021 = 93 93 * 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.