Plugin Directory

Changeset 2904114


Ignore:
Timestamp:
04/25/2023 10:02:03 PM (3 years ago)
Author:
flutterwave
Message:

Update to version 2.3.2 from GitHub

Location:
rave-woocommerce-payment-gateway
Files:
120 added
15 deleted
13 edited
1 copied

Legend:

Unmodified
Added
Removed
  • rave-woocommerce-payment-gateway/assets/Screenshot-1.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/Screenshot-2.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/Screenshot-3.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/Screenshot-4.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/Screenshot-5.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/banner-1544x500.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/banner-772x250.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/icon-128×128.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/assets/icon-256×256.png

    • Property svn:mime-type changed from application/octet-stream to image/png
  • rave-woocommerce-payment-gateway/tags/2.3.2/readme.txt

    r2801546 r2904114  
    33Tags: rave,flutterwave, woocommerce, payments, nigeria, mastercard, visa, target,Naira,payments,verve,donation,church,shop,store, ghana, kenya, international, mastercard, visa
    44Requires at least: 3.1
    5 Tested up to: 6.0
    6 Stable tag: 2.3.1
     5Tested up to: 6.1
     6Stable tag: 2.3.2
    77License: MIT
    88License URI: https://github.com/Flutterwave/rave-woocommerce/blob/master/LICENSE
     
    8282For additional assistance using this library, contact the developer experience (DX) team via [email](mailto:[email protected]) or on [slack](https://bit.ly/34Vkzcg).
    8383
    84 You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
     84You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
    8585
    8686= Contribution guidelines =
  • rave-woocommerce-payment-gateway/tags/2.3.2/woocommerce-rave.php

    r2801546 r2904114  
    11<?php
     2/**
     3 * Plugin Name: Flutterwave WooCommerce
     4 * Plugin URI: https://developer.flutterwave.com/
     5 * Description: Official WooCommerce payment gateway for Flutterwave.
     6 * Version: 2.3.2
     7 * Author: Flutterwave Developers
     8 * Author URI: http://flutterwave.com/us
     9 * License: MIT License
     10 * Text Domain: woocommerce-rave
     11 * Domain Path: i18n/languages
     12 * WC requires at least:   7.1
     13 * WC tested up to:        7.6.0
     14 * Requires at least:      5.6
     15 * Requires PHP:           7.4
     16 *
     17 * @package Flutterwave WooCommerce
     18 **/
    219
    3 /*
    4 Plugin Name: Flutterwave WooCommerce
    5 Plugin URI: https://rave.flutterwave.com/
    6 Description: Official WooCommerce payment gateway for Flutterwave.
    7 Version: 2.3.1
    8 Author: Flutterwave Developers
    9 Author URI: http://developer.flutterwave.com
    10 License: MIT License
    11 WC requires at least:   3.0.0
    12 WC tested up to:        4.9.2
    13 */
     20declare(strict_types=1);
    1421
     22defined( 'ABSPATH' ) || exit;
    1523
    16 if (!defined('ABSPATH')) {
    17   exit;
     24if ( ! defined( 'FLW_WC_PLUGIN_FILE' ) ) {
     25    define( 'FLW_WC_PLUGIN_FILE', __FILE__ );
    1826}
    1927
    20 define('FLW_WC_PLUGIN_FILE', __FILE__);
    21 define('FLW_WC_DIR_PATH', plugin_dir_path(FLW_WC_PLUGIN_FILE));
     28/**
     29 * Initialize Flutterwave WooCommerce payment gateway.
     30 */
     31function flutterwave_bootstrap() {
     32    if ( ! class_exists( 'Flutterwave' ) ) {
     33        include_once dirname( FLW_WC_PLUGIN_FILE ) . '/includes/class-flutterwave.php';
     34        // Global for backwards compatibility.
     35        $GLOBALS['flutterwave'] = Flutterwave::instance();
     36    }
     37}
    2238
    23 
    24 
    25 function flw_woocommerce_rave_init()
    26 {
    27 
    28   if (!class_exists('WC_Payment_Gateway'))
    29     return;
    30 
    31   require_once(FLW_WC_DIR_PATH . 'includes/class.flw_wc_payment_gateway.php');
    32 
    33   // include subscription if exists
    34   if (class_exists('WC_Subscriptions_Order') && class_exists('WC_Payment_Gateway_CC')) {
    35 
    36     require_once(FLW_WC_DIR_PATH . 'includes/class.flw_wc_subscription_payment.php');
    37 
    38   }
    39 
    40   add_filter('woocommerce_payment_gateways', 'flw_woocommerce_add_rave_gateway', 99);
    41 }
    42 add_action('plugins_loaded', 'flw_woocommerce_rave_init', 99);
     39add_action( 'plugins_loaded', 'flutterwave_bootstrap', 99 );
    4340
    4441/**
    4542 * Add the Settings link to the plugin
    4643 *
    47  * @param  Array $links Existing links on the plugin page
     44 * @param  array $links Existing links on the plugin page.
    4845 *
    49  * @return Array          Existing links with our settings link added
     46 * @return array Existing links with our settings link added
    5047 */
    51 function flw_plugin_action_links($links)
    52 {
     48function flw_plugin_action_links( array $links ): array {
    5349
    54   $rave_settings_url = esc_url(get_admin_url(null, 'admin.php?page=wc-settings&tab=checkout&section=rave'));
    55   array_unshift($links, "<a title='Flutterwave Settings Page' href='$rave_settings_url'>Settings</a>");
     50    $rave_settings_url = esc_url( get_admin_url( null, 'admin.php?page=wc-settings&tab=checkout&section=rave' ) );
     51    array_unshift( $links, "<a title='Flutterwave Settings Page' href='$rave_settings_url'>Settings</a>" );
    5652
    57   return $links;
    58 
    59 }
    60 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'flw_plugin_action_links');
    61 
    62 /**
    63  * Add the Gateway to WooCommerce
    64  *
    65  * @param  Array $methods Existing gateways in WooCommerce
    66  *
    67  * @return Array          Gateway list with our gateway added
    68  */
    69 function flw_woocommerce_add_rave_gateway($methods)
    70 {
    71 
    72   if (class_exists('WC_Subscriptions_Order') && class_exists('WC_Payment_Gateway_CC')) {
    73 
    74     $methods[] = 'FLW_WC_Payment_Gateway_Subscriptions';
    75 
    76   } else {
    77 
    78     $methods[] = 'FLW_WC_Payment_Gateway';
    79   }
    80 
    81   return $methods;
     53    return $links;
    8254
    8355}
    8456
     57add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'flw_plugin_action_links' );
    8558
    86 ?>
     59
     60
     61
     62
     63
     64
  • rave-woocommerce-payment-gateway/trunk/readme.txt

    r2801546 r2904114  
    33Tags: rave,flutterwave, woocommerce, payments, nigeria, mastercard, visa, target,Naira,payments,verve,donation,church,shop,store, ghana, kenya, international, mastercard, visa
    44Requires at least: 3.1
    5 Tested up to: 6.0
    6 Stable tag: 2.3.1
     5Tested up to: 6.1
     6Stable tag: 2.3.2
    77License: MIT
    88License URI: https://github.com/Flutterwave/rave-woocommerce/blob/master/LICENSE
     
    8282For additional assistance using this library, contact the developer experience (DX) team via [email](mailto:[email protected]) or on [slack](https://bit.ly/34Vkzcg).
    8383
    84 You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
     84You can also follow us [@FlutterwaveEng](https://twitter.com/FlutterwaveEng) and let us know what you think 😊.
    8585
    8686= Contribution guidelines =
  • rave-woocommerce-payment-gateway/trunk/woocommerce-rave.php

    r2801546 r2904114  
    11<?php
     2/**
     3 * Plugin Name: Flutterwave WooCommerce
     4 * Plugin URI: https://developer.flutterwave.com/
     5 * Description: Official WooCommerce payment gateway for Flutterwave.
     6 * Version: 2.3.2
     7 * Author: Flutterwave Developers
     8 * Author URI: http://flutterwave.com/us
     9 * License: MIT License
     10 * Text Domain: woocommerce-rave
     11 * Domain Path: i18n/languages
     12 * WC requires at least:   7.1
     13 * WC tested up to:        7.6.0
     14 * Requires at least:      5.6
     15 * Requires PHP:           7.4
     16 *
     17 * @package Flutterwave WooCommerce
     18 **/
    219
    3 /*
    4 Plugin Name: Flutterwave WooCommerce
    5 Plugin URI: https://rave.flutterwave.com/
    6 Description: Official WooCommerce payment gateway for Flutterwave.
    7 Version: 2.3.1
    8 Author: Flutterwave Developers
    9 Author URI: http://developer.flutterwave.com
    10 License: MIT License
    11 WC requires at least:   3.0.0
    12 WC tested up to:        4.9.2
    13 */
     20declare(strict_types=1);
    1421
     22defined( 'ABSPATH' ) || exit;
    1523
    16 if (!defined('ABSPATH')) {
    17   exit;
     24if ( ! defined( 'FLW_WC_PLUGIN_FILE' ) ) {
     25    define( 'FLW_WC_PLUGIN_FILE', __FILE__ );
    1826}
    1927
    20 define('FLW_WC_PLUGIN_FILE', __FILE__);
    21 define('FLW_WC_DIR_PATH', plugin_dir_path(FLW_WC_PLUGIN_FILE));
     28/**
     29 * Initialize Flutterwave WooCommerce payment gateway.
     30 */
     31function flutterwave_bootstrap() {
     32    if ( ! class_exists( 'Flutterwave' ) ) {
     33        include_once dirname( FLW_WC_PLUGIN_FILE ) . '/includes/class-flutterwave.php';
     34        // Global for backwards compatibility.
     35        $GLOBALS['flutterwave'] = Flutterwave::instance();
     36    }
     37}
    2238
    23 
    24 
    25 function flw_woocommerce_rave_init()
    26 {
    27 
    28   if (!class_exists('WC_Payment_Gateway'))
    29     return;
    30 
    31   require_once(FLW_WC_DIR_PATH . 'includes/class.flw_wc_payment_gateway.php');
    32 
    33   // include subscription if exists
    34   if (class_exists('WC_Subscriptions_Order') && class_exists('WC_Payment_Gateway_CC')) {
    35 
    36     require_once(FLW_WC_DIR_PATH . 'includes/class.flw_wc_subscription_payment.php');
    37 
    38   }
    39 
    40   add_filter('woocommerce_payment_gateways', 'flw_woocommerce_add_rave_gateway', 99);
    41 }
    42 add_action('plugins_loaded', 'flw_woocommerce_rave_init', 99);
     39add_action( 'plugins_loaded', 'flutterwave_bootstrap', 99 );
    4340
    4441/**
    4542 * Add the Settings link to the plugin
    4643 *
    47  * @param  Array $links Existing links on the plugin page
     44 * @param  array $links Existing links on the plugin page.
    4845 *
    49  * @return Array          Existing links with our settings link added
     46 * @return array Existing links with our settings link added
    5047 */
    51 function flw_plugin_action_links($links)
    52 {
     48function flw_plugin_action_links( array $links ): array {
    5349
    54   $rave_settings_url = esc_url(get_admin_url(null, 'admin.php?page=wc-settings&tab=checkout&section=rave'));
    55   array_unshift($links, "<a title='Flutterwave Settings Page' href='$rave_settings_url'>Settings</a>");
     50    $rave_settings_url = esc_url( get_admin_url( null, 'admin.php?page=wc-settings&tab=checkout&section=rave' ) );
     51    array_unshift( $links, "<a title='Flutterwave Settings Page' href='$rave_settings_url'>Settings</a>" );
    5652
    57   return $links;
    58 
    59 }
    60 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'flw_plugin_action_links');
    61 
    62 /**
    63  * Add the Gateway to WooCommerce
    64  *
    65  * @param  Array $methods Existing gateways in WooCommerce
    66  *
    67  * @return Array          Gateway list with our gateway added
    68  */
    69 function flw_woocommerce_add_rave_gateway($methods)
    70 {
    71 
    72   if (class_exists('WC_Subscriptions_Order') && class_exists('WC_Payment_Gateway_CC')) {
    73 
    74     $methods[] = 'FLW_WC_Payment_Gateway_Subscriptions';
    75 
    76   } else {
    77 
    78     $methods[] = 'FLW_WC_Payment_Gateway';
    79   }
    80 
    81   return $methods;
     53    return $links;
    8254
    8355}
    8456
     57add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'flw_plugin_action_links' );
    8558
    86 ?>
     59
     60
     61
     62
     63
     64
Note: See TracChangeset for help on using the changeset viewer.