Plugin Directory

Changeset 3106730


Ignore:
Timestamp:
06/24/2024 02:31:45 PM (20 months ago)
Author:
cryptapi
Message:

v4.8.3 - Minor improvements

Location:
cryptapi-payment-gateway-for-woocommerce
Files:
5 edited
36 copied

Legend:

Unmodified
Added
Removed
  • cryptapi-payment-gateway-for-woocommerce/tags/4.8.3/CryptAPI.php

    r3093853 r3106730  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.8.2
     6Version: 4.8.3
    77Requires at least: 5.8
    88Tested up to: 6.5.3
    99WC requires at least: 5.8
    10 WC tested up to: 8.9.1
     10WC tested up to: 9.0.1
    1111Requires PHP: 7.2
    1212Author: cryptapi
  • cryptapi-payment-gateway-for-woocommerce/tags/4.8.3/README.md

    r3093853 r3106730  
    374374* Minor fixes and improvements
    375375
     376#### 4.8.3
     377* Minor improvements
     378
    376379### Upgrade Notice
    377380#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/tags/4.8.3/controllers/CryptAPI.php

    r3093853 r3106730  
    6868    {
    6969        $transient = get_transient('cryptapi_coins');
     70
    7071        if (!empty($transient)) {
    71             return $transient;
    72         }
    73 
    74         $coins = CryptAPI\Helper::get_supported_coins();
    75         set_transient('cryptapi_coins', $coins, 86400);
    76 
    77         if (empty($coins)) {
    78             throw new Exception(__('No cryptocurrencies available at the moment. Please choose a different payment method or try again later.', 'cryptapi'));
    79         }
     72            $coins = $transient;
     73        } else {
     74            $coins = CryptAPI\Helper::get_supported_coins();
     75            set_transient('cryptapi_coins', $coins, 86400);
     76
     77            if (empty($coins)) {
     78                throw new Exception(__('No cryptocurrencies available at the moment. Please choose a different payment method or try again later.', 'cryptapi'));
     79            }
     80        }
     81
     82        $coins['eth']['name'] = $coins['eth']['name'] . ' (ERC20)';
     83
     84        # Disabling XMR since it is not supported anymore.
     85        unset($coins['xmr']);
    8086
    8187        return $coins;
  • cryptapi-payment-gateway-for-woocommerce/tags/4.8.3/define.php

    r3093853 r3106730  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.8.2');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.8.3');
    44define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    55define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cryptapi-payment-gateway-for-woocommerce/tags/4.8.3/readme.txt

    r3093853 r3106730  
    44Requires at least: 5.8
    55Tested up to: 6.5
    6 Stable tag: 4.8.2
     6Stable tag: 4.8.3
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 8.6.1
     9WC tested up to: 9.0.1
    1010License: MIT
    1111
     
    372372* Minor fixes and improvements
    373373
     374= 4.8.3 =
     375* Minor improvements
     376
    374377== Upgrade Notice ==
    375378
  • cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php

    r3093853 r3106730  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.8.2
     6Version: 4.8.3
    77Requires at least: 5.8
    88Tested up to: 6.5.3
    99WC requires at least: 5.8
    10 WC tested up to: 8.9.1
     10WC tested up to: 9.0.1
    1111Requires PHP: 7.2
    1212Author: cryptapi
  • cryptapi-payment-gateway-for-woocommerce/trunk/README.md

    r3093853 r3106730  
    374374* Minor fixes and improvements
    375375
     376#### 4.8.3
     377* Minor improvements
     378
    376379### Upgrade Notice
    377380#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php

    r3093853 r3106730  
    6868    {
    6969        $transient = get_transient('cryptapi_coins');
     70
    7071        if (!empty($transient)) {
    71             return $transient;
    72         }
    73 
    74         $coins = CryptAPI\Helper::get_supported_coins();
    75         set_transient('cryptapi_coins', $coins, 86400);
    76 
    77         if (empty($coins)) {
    78             throw new Exception(__('No cryptocurrencies available at the moment. Please choose a different payment method or try again later.', 'cryptapi'));
    79         }
     72            $coins = $transient;
     73        } else {
     74            $coins = CryptAPI\Helper::get_supported_coins();
     75            set_transient('cryptapi_coins', $coins, 86400);
     76
     77            if (empty($coins)) {
     78                throw new Exception(__('No cryptocurrencies available at the moment. Please choose a different payment method or try again later.', 'cryptapi'));
     79            }
     80        }
     81
     82        $coins['eth']['name'] = $coins['eth']['name'] . ' (ERC20)';
     83
     84        # Disabling XMR since it is not supported anymore.
     85        unset($coins['xmr']);
    8086
    8187        return $coins;
  • cryptapi-payment-gateway-for-woocommerce/trunk/define.php

    r3093853 r3106730  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.8.2');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.8.3');
    44define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
    55define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt

    r3093853 r3106730  
    44Requires at least: 5.8
    55Tested up to: 6.5
    6 Stable tag: 4.8.2
     6Stable tag: 4.8.3
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 8.6.1
     9WC tested up to: 9.0.1
    1010License: MIT
    1111
     
    372372* Minor fixes and improvements
    373373
     374= 4.8.3 =
     375* Minor improvements
     376
    374377== Upgrade Notice ==
    375378
Note: See TracChangeset for help on using the changeset viewer.