💦 FULL SET: Changeset/ - High Quality

Changeset 2469709


Ignore:
Timestamp:
02/05/2021 06:12:51 PM (5 years ago)
Author:
jluisfreitas
Message:

version 2.0.8

Location:
eupago-for-woocommerce
Files:
1 deleted
9 edited
22 copied

Legend:

Unmodified
Added
Removed
  • eupago-for-woocommerce/tags/2.0.8/eupago-for-woocommerce.php

    r2348227 r2469709  
    44* Plugin URI: http://www.webatual.pt
    55* Description: This plugin allows Portuguese costumers to pay WooCommerce orders with Multibanco, PayShop and MBWAY using the euPago gateway.
    6 * Version: 2.0.7.1
     6* Version: 2.0.8
    77* Author: WebAtual
    88* Author URI: http://www.webatual.pt
    99* Text Domain: eupago-for-woocommerce
    1010* Domain Path: /lang
    11 * WC tested up to: 4.3.1
     11* WC tested up to: 4.5.2
    1212**/
    1313
     
    2121        * @var string
    2222        */
    23         const VERSION = '2.0.7.1';
     23        const VERSION = '2.0.8';
    2424
    2525        /**
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-cc.php

    r2347941 r2469709  
    296296
    297297    /**
    298     * Just for Portugal
    299     */
    300     function disable_unless_portugal($available_gateways) {
    301       if ( ! is_admin() ) {
    302         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    303         if ( isset( $available_gateways[$this->id] ) ) {
    304           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    305             unset($available_gateways[$this->id]);
     298     * Just for Portugal
     299     */
     300    function disable_unless_portugal($available_gateways)
     301    {
     302      if (!is_admin()) {
     303        if (isset($available_gateways[$this->id])) {
     304          if (isset(WC()->customer)) {
     305            $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     306            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     307              unset($available_gateways[$this->id]);
     308            }
    306309          }
    307310        }
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-mbway.php

    r2189184 r2469709  
    313313
    314314    /**
    315     * Just for Portugal
    316     */
    317     function disable_unless_portugal($available_gateways) {
    318       if ( ! is_admin() ) {
    319         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    320         if ( isset( $available_gateways[$this->id] ) ) {
    321           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    322             unset($available_gateways[$this->id]);
     315     * Just for Portugal
     316     */
     317    function disable_unless_portugal($available_gateways)
     318    {
     319      if (!is_admin()) {
     320        if (isset(WC()->customer)) {
     321          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     322          if (isset($available_gateways[$this->id])) {
     323            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     324              unset($available_gateways[$this->id]);
     325            }
    323326          }
    324327        }
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-multibanco.php

    r2230205 r2469709  
    314314
    315315    /**
    316     * Just for Portugal
    317     */
    318     function disable_unless_portugal($available_gateways) {
    319       if ( ! is_admin() ) {
    320         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    321         if ( isset( $available_gateways[$this->id] ) ) {
    322           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    323             unset($available_gateways[$this->id]);
     316     * Just for Portugal
     317     */
     318    function disable_unless_portugal($available_gateways)
     319    {
     320      if (!is_admin()) {
     321        if (isset($available_gateways[$this->id])) {
     322          if (isset(WC()->customer)) {
     323            $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     324            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     325              unset($available_gateways[$this->id]);
     326            }
    324327          }
    325328        }
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-pagaqui.php

    r2189184 r2469709  
    273273
    274274    /**
    275     * Just for Portugal
    276     */
    277     function disable_unless_portugal($available_gateways) {
    278       if ( ! is_admin() ) {
    279         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    280         if ( isset( $available_gateways[$this->id] ) ) {
    281           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    282             unset($available_gateways[$this->id]);
     275     * Just for Portugal
     276     */
     277    function disable_unless_portugal($available_gateways)
     278    {
     279      if (!is_admin()) {
     280        if (isset(WC()->customer)) {
     281          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     282          if (isset($available_gateways[$this->id])) {
     283            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     284              unset($available_gateways[$this->id]);
     285            }
    283286          }
    284287        }
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-paysafecard.php

    r2189184 r2469709  
    303303
    304304    /**
    305     * Just for Portugal
    306     */
    307     function disable_unless_portugal($available_gateways) {
    308       if ( ! is_admin() ) {
    309         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    310         if ( isset( $available_gateways[$this->id] ) ) {
    311           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    312             unset($available_gateways[$this->id]);
     305     * Just for Portugal
     306     */
     307    function disable_unless_portugal($available_gateways)
     308    {
     309      if (!is_admin()) {
     310        if (isset(WC()->customer)) {
     311          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     312          if (isset($available_gateways[$this->id])) {
     313            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     314              unset($available_gateways[$this->id]);
     315            }
    313316          }
    314317        }
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-paysafecash.php

    r2189184 r2469709  
    300300
    301301    /**
    302     * Just for Portugal
    303     */
    304     function disable_unless_portugal($available_gateways) {
    305       if ( ! is_admin() ) {
    306         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    307         if ( isset( $available_gateways[$this->id] ) ) {
    308           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    309             unset($available_gateways[$this->id]);
     302     * Just for Portugal
     303     */
     304    function disable_unless_portugal($available_gateways)
     305    {
     306      if (!is_admin()) {
     307        if (isset(WC()->customer)) {
     308          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     309          if (isset($available_gateways[$this->id])) {
     310            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     311              unset($available_gateways[$this->id]);
     312            }
    310313          }
    311314        }
  • eupago-for-woocommerce/tags/2.0.8/includes/class-wc-eupago-payshop.php

    r2189184 r2469709  
    273273
    274274    /**
    275     * Just for Portugal
    276     */
    277     function disable_unless_portugal($available_gateways) {
    278       if ( ! is_admin() ) {
    279         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    280         if ( isset( $available_gateways[$this->id] ) ) {
    281           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    282             unset($available_gateways[$this->id]);
     275     * Just for Portugal
     276     */
     277    function disable_unless_portugal($available_gateways)
     278    {
     279      if (!is_admin()) {
     280        if (isset(WC()->customer)) {
     281          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     282          if (isset($available_gateways[$this->id])) {
     283            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     284              unset($available_gateways[$this->id]);
     285            }
    283286          }
    284287        }
  • eupago-for-woocommerce/tags/2.0.8/readme.txt

    r2348227 r2469709  
    55Plugin URI: https://www.webatual.pt
    66Requires at least: 4.4
    7 Tested up to: 5.4.2
    8 Stable tag: 2.0.7.1
     7Tested up to: 5.6.1
     8Stable tag: 2.0.8
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747
    4848== Changelog ==
     49
     50= 2.0.8 =
     51* Bugfix
    4952
    5053= 2.0.7.1 =
     
    115118== Upgrade Notice ==
    116119
     120= 2.0.8 =
     121* Small bugfix
     122
    117123= 2.0.7.1 =
    118124* Add credit card icon
  • eupago-for-woocommerce/trunk/eupago-for-woocommerce.php

    r2348227 r2469709  
    44* Plugin URI: http://www.webatual.pt
    55* Description: This plugin allows Portuguese costumers to pay WooCommerce orders with Multibanco, PayShop and MBWAY using the euPago gateway.
    6 * Version: 2.0.7.1
     6* Version: 2.0.8
    77* Author: WebAtual
    88* Author URI: http://www.webatual.pt
    99* Text Domain: eupago-for-woocommerce
    1010* Domain Path: /lang
    11 * WC tested up to: 4.3.1
     11* WC tested up to: 4.5.2
    1212**/
    1313
     
    2121        * @var string
    2222        */
    23         const VERSION = '2.0.7.1';
     23        const VERSION = '2.0.8';
    2424
    2525        /**
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-cc.php

    r2347941 r2469709  
    296296
    297297    /**
    298     * Just for Portugal
    299     */
    300     function disable_unless_portugal($available_gateways) {
    301       if ( ! is_admin() ) {
    302         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    303         if ( isset( $available_gateways[$this->id] ) ) {
    304           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    305             unset($available_gateways[$this->id]);
     298     * Just for Portugal
     299     */
     300    function disable_unless_portugal($available_gateways)
     301    {
     302      if (!is_admin()) {
     303        if (isset($available_gateways[$this->id])) {
     304          if (isset(WC()->customer)) {
     305            $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     306            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     307              unset($available_gateways[$this->id]);
     308            }
    306309          }
    307310        }
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-mbway.php

    r2189184 r2469709  
    313313
    314314    /**
    315     * Just for Portugal
    316     */
    317     function disable_unless_portugal($available_gateways) {
    318       if ( ! is_admin() ) {
    319         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    320         if ( isset( $available_gateways[$this->id] ) ) {
    321           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    322             unset($available_gateways[$this->id]);
     315     * Just for Portugal
     316     */
     317    function disable_unless_portugal($available_gateways)
     318    {
     319      if (!is_admin()) {
     320        if (isset(WC()->customer)) {
     321          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     322          if (isset($available_gateways[$this->id])) {
     323            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     324              unset($available_gateways[$this->id]);
     325            }
    323326          }
    324327        }
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-multibanco.php

    r2230205 r2469709  
    314314
    315315    /**
    316     * Just for Portugal
    317     */
    318     function disable_unless_portugal($available_gateways) {
    319       if ( ! is_admin() ) {
    320         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    321         if ( isset( $available_gateways[$this->id] ) ) {
    322           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    323             unset($available_gateways[$this->id]);
     316     * Just for Portugal
     317     */
     318    function disable_unless_portugal($available_gateways)
     319    {
     320      if (!is_admin()) {
     321        if (isset($available_gateways[$this->id])) {
     322          if (isset(WC()->customer)) {
     323            $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     324            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     325              unset($available_gateways[$this->id]);
     326            }
    324327          }
    325328        }
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-pagaqui.php

    r2189184 r2469709  
    273273
    274274    /**
    275     * Just for Portugal
    276     */
    277     function disable_unless_portugal($available_gateways) {
    278       if ( ! is_admin() ) {
    279         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    280         if ( isset( $available_gateways[$this->id] ) ) {
    281           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    282             unset($available_gateways[$this->id]);
     275     * Just for Portugal
     276     */
     277    function disable_unless_portugal($available_gateways)
     278    {
     279      if (!is_admin()) {
     280        if (isset(WC()->customer)) {
     281          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     282          if (isset($available_gateways[$this->id])) {
     283            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     284              unset($available_gateways[$this->id]);
     285            }
    283286          }
    284287        }
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-paysafecard.php

    r2189184 r2469709  
    303303
    304304    /**
    305     * Just for Portugal
    306     */
    307     function disable_unless_portugal($available_gateways) {
    308       if ( ! is_admin() ) {
    309         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    310         if ( isset( $available_gateways[$this->id] ) ) {
    311           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    312             unset($available_gateways[$this->id]);
     305     * Just for Portugal
     306     */
     307    function disable_unless_portugal($available_gateways)
     308    {
     309      if (!is_admin()) {
     310        if (isset(WC()->customer)) {
     311          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     312          if (isset($available_gateways[$this->id])) {
     313            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     314              unset($available_gateways[$this->id]);
     315            }
    313316          }
    314317        }
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-paysafecash.php

    r2189184 r2469709  
    300300
    301301    /**
    302     * Just for Portugal
    303     */
    304     function disable_unless_portugal($available_gateways) {
    305       if ( ! is_admin() ) {
    306         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    307         if ( isset( $available_gateways[$this->id] ) ) {
    308           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    309             unset($available_gateways[$this->id]);
     302     * Just for Portugal
     303     */
     304    function disable_unless_portugal($available_gateways)
     305    {
     306      if (!is_admin()) {
     307        if (isset(WC()->customer)) {
     308          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     309          if (isset($available_gateways[$this->id])) {
     310            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     311              unset($available_gateways[$this->id]);
     312            }
    310313          }
    311314        }
  • eupago-for-woocommerce/trunk/includes/class-wc-eupago-payshop.php

    r2189184 r2469709  
    273273
    274274    /**
    275     * Just for Portugal
    276     */
    277     function disable_unless_portugal($available_gateways) {
    278       if ( ! is_admin() ) {
    279         $country = version_compare( WC_VERSION, '3.0', '>=' ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
    280         if ( isset( $available_gateways[$this->id] ) ) {
    281           if ( $available_gateways[$this->id]->only_portugal == 'yes' && trim( $country ) != 'PT' ) {
    282             unset($available_gateways[$this->id]);
     275     * Just for Portugal
     276     */
     277    function disable_unless_portugal($available_gateways)
     278    {
     279      if (!is_admin()) {
     280        if (isset(WC()->customer)) {
     281          $country = version_compare(WC_VERSION, '3.0', '>=') ? WC()->customer->get_billing_country() : WC()->customer->get_country();
     282          if (isset($available_gateways[$this->id])) {
     283            if ($available_gateways[$this->id]->only_portugal == 'yes' && trim($country) != 'PT') {
     284              unset($available_gateways[$this->id]);
     285            }
    283286          }
    284287        }
  • eupago-for-woocommerce/trunk/readme.txt

    r2348227 r2469709  
    55Plugin URI: https://www.webatual.pt
    66Requires at least: 4.4
    7 Tested up to: 5.4.2
    8 Stable tag: 2.0.7.1
     7Tested up to: 5.6.1
     8Stable tag: 2.0.8
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747
    4848== Changelog ==
     49
     50= 2.0.8 =
     51* Bugfix
    4952
    5053= 2.0.7.1 =
     
    115118== Upgrade Notice ==
    116119
     120= 2.0.8 =
     121* Small bugfix
     122
    117123= 2.0.7.1 =
    118124* Add credit card icon
Note: See TracChangeset for help on using the changeset viewer.