Plugin Directory

Changeset 2791225


Ignore:
Timestamp:
09/28/2022 09:13:17 AM (3 years ago)
Author:
cryptapi
Message:

v4.6.3 - Minor bugfixes

Location:
cryptapi-payment-gateway-for-woocommerce
Files:
5 deleted
6 edited
18 copied

Legend:

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

    r2789271 r2791225  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.6.2
     6Version: 4.6.3
    77Requires at least: 5
    88Tested up to: 6.0.2
    99WC requires at least: 5.8
    10 WC tested up to: 6.9.3
     10WC tested up to: 6.9.4
    1111Requires PHP: 7.2
    1212Author: cryptapi
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/README.md

    r2789271 r2791225  
    280280* Added new languages
    281281
     282#### 4.6.3
     283* Minor fixes
     284
    282285### Upgrade Notice
    283286#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/controllers/CryptAPI.php

    r2789271 r2791225  
    620620            $remaining_fiat = $calc['remaining_fiat'];
    621621
     622            $hide_refresh = 0;
     623
    622624            $cryptapi_pending = 0;
     625
     626            $counter_calc = (int)$order->get_meta('cryptapi_last_price_update') + (int)$this->refresh_value_interval - time();
     627
     628            if($already_paid > 0) {
     629                $hide_refresh = 1;
     630            }
     631
    623632            if ($remaining_pending <= 0 && !$order->is_paid()) {
    624633                $cryptapi_pending = 1;
    625634            }
    626 
    627             $counter_calc = (int)$order->get_meta('cryptapi_last_price_update') + (int)$this->refresh_value_interval - time();
    628635
    629636            if ($counter_calc <= 0 && !$order->is_paid()) {
     
    654661                'fiat_remaining' => $remaining_fiat <= 0 ? 0 : $remaining_fiat,
    655662                'already_paid_fiat' => floatval($already_paid_fiat) <= 0 ? 0 : floatval($already_paid_fiat),
    656                 'fiat_symbol' => get_woocommerce_currency_symbol()
     663                'fiat_symbol' => get_woocommerce_currency_symbol(),
     664                'hide_refresh' => $hide_refresh,
    657665            ];
    658666
     
    677685            parse_str($request_url['query'], $data);
    678686
    679             if (empty($history[$callback->uuid]) || (!empty($history[$callback->uuid]) && (int)$data['pending'] === 0)) {
    680 
     687            if (empty($history[$callback->uuid]) || (!empty($history[$callback->uuid]) && (int)$history[$callback->uuid]['pending'] === 1 && (int)$data['pending'] === 0)) {
    681688                $this->process_callback_data($data, $order, true);
    682689            }
     
    11211128
    11221129            if ($value_refresh !== 0 && $last_price_update + $value_refresh <= time() && !empty($last_price_update)) {
    1123                 if ($remaining === $remaining_pending) {
     1130                if ($already_paid === 0) {
    11241131                    $cryptapi_coin = $order->get_meta('cryptapi_currency');
    11251132
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/define.php

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

    r2789271 r2791225  
    44Requires at least: 5
    55Tested up to: 6.0.2
    6 Stable tag: 4.6.2
     6Stable tag: 4.6.3
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 6.9.3
     9WC tested up to: 6.9.4
    1010License: MIT
    1111
     
    290290* Added new languages
    291291
     292= 4.6.3 =
     293* Minor fixes
     294
    292295== Upgrade Notice ==
    293296
  • cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/static/payment.js

    r2789271 r2791225  
    6060            } else {
    6161                jQuery('.ca_notification_remaining').hide();
     62            }
     63
     64            if (data.hide_refresh === 1) {
     65                jQuery('.ca_time_refresh').hide();
     66            } else {
     67                jQuery('.ca_time_refresh').show();
    6268            }
    6369
  • cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php

    r2789271 r2791225  
    44Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
    55Description: Accept cryptocurrency payments on your WooCommerce website
    6 Version: 4.6.2
     6Version: 4.6.3
    77Requires at least: 5
    88Tested up to: 6.0.2
    99WC requires at least: 5.8
    10 WC tested up to: 6.9.3
     10WC tested up to: 6.9.4
    1111Requires PHP: 7.2
    1212Author: cryptapi
  • cryptapi-payment-gateway-for-woocommerce/trunk/README.md

    r2789271 r2791225  
    280280* Added new languages
    281281
     282#### 4.6.3
     283* Minor fixes
     284
    282285### Upgrade Notice
    283286#### 4.3
  • cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php

    r2789271 r2791225  
    620620            $remaining_fiat = $calc['remaining_fiat'];
    621621
     622            $hide_refresh = 0;
     623
    622624            $cryptapi_pending = 0;
     625
     626            $counter_calc = (int)$order->get_meta('cryptapi_last_price_update') + (int)$this->refresh_value_interval - time();
     627
     628            if($already_paid > 0) {
     629                $hide_refresh = 1;
     630            }
     631
    623632            if ($remaining_pending <= 0 && !$order->is_paid()) {
    624633                $cryptapi_pending = 1;
    625634            }
    626 
    627             $counter_calc = (int)$order->get_meta('cryptapi_last_price_update') + (int)$this->refresh_value_interval - time();
    628635
    629636            if ($counter_calc <= 0 && !$order->is_paid()) {
     
    654661                'fiat_remaining' => $remaining_fiat <= 0 ? 0 : $remaining_fiat,
    655662                'already_paid_fiat' => floatval($already_paid_fiat) <= 0 ? 0 : floatval($already_paid_fiat),
    656                 'fiat_symbol' => get_woocommerce_currency_symbol()
     663                'fiat_symbol' => get_woocommerce_currency_symbol(),
     664                'hide_refresh' => $hide_refresh,
    657665            ];
    658666
     
    677685            parse_str($request_url['query'], $data);
    678686
    679             if (empty($history[$callback->uuid]) || (!empty($history[$callback->uuid]) && (int)$data['pending'] === 0)) {
    680 
     687            if (empty($history[$callback->uuid]) || (!empty($history[$callback->uuid]) && (int)$history[$callback->uuid]['pending'] === 1 && (int)$data['pending'] === 0)) {
    681688                $this->process_callback_data($data, $order, true);
    682689            }
     
    11211128
    11221129            if ($value_refresh !== 0 && $last_price_update + $value_refresh <= time() && !empty($last_price_update)) {
    1123                 if ($remaining === $remaining_pending) {
     1130                if ($already_paid === 0) {
    11241131                    $cryptapi_coin = $order->get_meta('cryptapi_currency');
    11251132
  • cryptapi-payment-gateway-for-woocommerce/trunk/define.php

    r2789271 r2791225  
    11<?php
    22
    3 define('CRYPTAPI_PLUGIN_VERSION', '4.6.2');
     3define('CRYPTAPI_PLUGIN_VERSION', '4.6.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

    r2789271 r2791225  
    44Requires at least: 5
    55Tested up to: 6.0.2
    6 Stable tag: 4.6.2
     6Stable tag: 4.6.3
    77Requires PHP: 7.2
    88WC requires at least: 5.8
    9 WC tested up to: 6.9.3
     9WC tested up to: 6.9.4
    1010License: MIT
    1111
     
    290290* Added new languages
    291291
     292= 4.6.3 =
     293* Minor fixes
     294
    292295== Upgrade Notice ==
    293296
  • cryptapi-payment-gateway-for-woocommerce/trunk/static/payment.js

    r2789271 r2791225  
    6060            } else {
    6161                jQuery('.ca_notification_remaining').hide();
     62            }
     63
     64            if (data.hide_refresh === 1) {
     65                jQuery('.ca_time_refresh').hide();
     66            } else {
     67                jQuery('.ca_time_refresh').show();
    6268            }
    6369
Note: See TracChangeset for help on using the changeset viewer.