Changeset 2791225
- Timestamp:
- 09/28/2022 09:13:17 AM (3 years ago)
- Location:
- cryptapi-payment-gateway-for-woocommerce
- Files:
-
- 5 deleted
- 6 edited
- 18 copied
-
tags/4.6.3 (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk)
-
tags/4.6.3/CryptAPI.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php) (1 diff)
-
tags/4.6.3/README.md (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/README.md) (1 diff)
-
tags/4.6.3/controllers/CryptAPI.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php) (4 diffs)
-
tags/4.6.3/define.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/define.php) (1 diff)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-es_ES.mo (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-es_ES.mo)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-es_ES.po (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-es_ES.po)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-it_IT.mo (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-it_IT.mo)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-it_IT.po (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-it_IT.po)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-pt_BR.mo (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-pt_BR.mo)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-pt_BR.po (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-pt_BR.po)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-pt_PT.mo (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-pt_PT.mo)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce-pt_PT.po (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce-pt_PT.po)
-
tags/4.6.3/languages/cryptapi-payment-gateway-for-woocommerce.pot (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/languages/cryptapi-payment-gateway-for-woocommerce.pot)
-
tags/4.6.3/readme.txt (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt) (2 diffs)
-
tags/4.6.3/static/200_logo_ca.png (deleted)
-
tags/4.6.3/static/check.png (deleted)
-
tags/4.6.3/static/cryptapi.css (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/static/cryptapi.css)
-
tags/4.6.3/static/loader_5.gif (deleted)
-
tags/4.6.3/static/logo_ca.png (deleted)
-
tags/4.6.3/static/payment.js (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/static/payment.js) (1 diff)
-
tags/4.6.3/utils/decimal.php (deleted)
-
tags/4.6.3/utils/helper.php (copied) (copied from cryptapi-payment-gateway-for-woocommerce/trunk/utils/helper.php)
-
trunk/CryptAPI.php (modified) (1 diff)
-
trunk/README.md (modified) (1 diff)
-
trunk/controllers/CryptAPI.php (modified) (4 diffs)
-
trunk/define.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/static/payment.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/CryptAPI.php
r2789271 r2791225 4 4 Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi 5 5 Description: Accept cryptocurrency payments on your WooCommerce website 6 Version: 4.6. 26 Version: 4.6.3 7 7 Requires at least: 5 8 8 Tested up to: 6.0.2 9 9 WC requires at least: 5.8 10 WC tested up to: 6.9. 310 WC tested up to: 6.9.4 11 11 Requires PHP: 7.2 12 12 Author: cryptapi -
cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/README.md
r2789271 r2791225 280 280 * Added new languages 281 281 282 #### 4.6.3 283 * Minor fixes 284 282 285 ### Upgrade Notice 283 286 #### 4.3 -
cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/controllers/CryptAPI.php
r2789271 r2791225 620 620 $remaining_fiat = $calc['remaining_fiat']; 621 621 622 $hide_refresh = 0; 623 622 624 $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 623 632 if ($remaining_pending <= 0 && !$order->is_paid()) { 624 633 $cryptapi_pending = 1; 625 634 } 626 627 $counter_calc = (int)$order->get_meta('cryptapi_last_price_update') + (int)$this->refresh_value_interval - time();628 635 629 636 if ($counter_calc <= 0 && !$order->is_paid()) { … … 654 661 'fiat_remaining' => $remaining_fiat <= 0 ? 0 : $remaining_fiat, 655 662 '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, 657 665 ]; 658 666 … … 677 685 parse_str($request_url['query'], $data); 678 686 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)) { 681 688 $this->process_callback_data($data, $order, true); 682 689 } … … 1121 1128 1122 1129 if ($value_refresh !== 0 && $last_price_update + $value_refresh <= time() && !empty($last_price_update)) { 1123 if ($ remaining === $remaining_pending) {1130 if ($already_paid === 0) { 1124 1131 $cryptapi_coin = $order->get_meta('cryptapi_currency'); 1125 1132 -
cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/define.php
r2789271 r2791225 1 1 <?php 2 2 3 define('CRYPTAPI_PLUGIN_VERSION', '4.6. 2');3 define('CRYPTAPI_PLUGIN_VERSION', '4.6.3'); 4 4 define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__)); 5 5 define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/readme.txt
r2789271 r2791225 4 4 Requires at least: 5 5 5 Tested up to: 6.0.2 6 Stable tag: 4.6. 26 Stable tag: 4.6.3 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 9 WC tested up to: 6.9. 39 WC tested up to: 6.9.4 10 10 License: MIT 11 11 … … 290 290 * Added new languages 291 291 292 = 4.6.3 = 293 * Minor fixes 294 292 295 == Upgrade Notice == 293 296 -
cryptapi-payment-gateway-for-woocommerce/tags/4.6.3/static/payment.js
r2789271 r2791225 60 60 } else { 61 61 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(); 62 68 } 63 69 -
cryptapi-payment-gateway-for-woocommerce/trunk/CryptAPI.php
r2789271 r2791225 4 4 Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi 5 5 Description: Accept cryptocurrency payments on your WooCommerce website 6 Version: 4.6. 26 Version: 4.6.3 7 7 Requires at least: 5 8 8 Tested up to: 6.0.2 9 9 WC requires at least: 5.8 10 WC tested up to: 6.9. 310 WC tested up to: 6.9.4 11 11 Requires PHP: 7.2 12 12 Author: cryptapi -
cryptapi-payment-gateway-for-woocommerce/trunk/README.md
r2789271 r2791225 280 280 * Added new languages 281 281 282 #### 4.6.3 283 * Minor fixes 284 282 285 ### Upgrade Notice 283 286 #### 4.3 -
cryptapi-payment-gateway-for-woocommerce/trunk/controllers/CryptAPI.php
r2789271 r2791225 620 620 $remaining_fiat = $calc['remaining_fiat']; 621 621 622 $hide_refresh = 0; 623 622 624 $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 623 632 if ($remaining_pending <= 0 && !$order->is_paid()) { 624 633 $cryptapi_pending = 1; 625 634 } 626 627 $counter_calc = (int)$order->get_meta('cryptapi_last_price_update') + (int)$this->refresh_value_interval - time();628 635 629 636 if ($counter_calc <= 0 && !$order->is_paid()) { … … 654 661 'fiat_remaining' => $remaining_fiat <= 0 ? 0 : $remaining_fiat, 655 662 '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, 657 665 ]; 658 666 … … 677 685 parse_str($request_url['query'], $data); 678 686 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)) { 681 688 $this->process_callback_data($data, $order, true); 682 689 } … … 1121 1128 1122 1129 if ($value_refresh !== 0 && $last_price_update + $value_refresh <= time() && !empty($last_price_update)) { 1123 if ($ remaining === $remaining_pending) {1130 if ($already_paid === 0) { 1124 1131 $cryptapi_coin = $order->get_meta('cryptapi_currency'); 1125 1132 -
cryptapi-payment-gateway-for-woocommerce/trunk/define.php
r2789271 r2791225 1 1 <?php 2 2 3 define('CRYPTAPI_PLUGIN_VERSION', '4.6. 2');3 define('CRYPTAPI_PLUGIN_VERSION', '4.6.3'); 4 4 define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__)); 5 5 define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cryptapi-payment-gateway-for-woocommerce/trunk/readme.txt
r2789271 r2791225 4 4 Requires at least: 5 5 5 Tested up to: 6.0.2 6 Stable tag: 4.6. 26 Stable tag: 4.6.3 7 7 Requires PHP: 7.2 8 8 WC requires at least: 5.8 9 WC tested up to: 6.9. 39 WC tested up to: 6.9.4 10 10 License: MIT 11 11 … … 290 290 * Added new languages 291 291 292 = 4.6.3 = 293 * Minor fixes 294 292 295 == Upgrade Notice == 293 296 -
cryptapi-payment-gateway-for-woocommerce/trunk/static/payment.js
r2789271 r2791225 60 60 } else { 61 61 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(); 62 68 } 63 69
Note: See TracChangeset
for help on using the changeset viewer.