Skip to content

Commit 10dee5c

Browse files
committed
v4.8.3
* Minor improvements
1 parent 622d82b commit 10dee5c

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

CryptAPI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Plugin Name: CryptAPI Payment Gateway for WooCommerce
44
Plugin URI: https://github.com/cryptapi/woocommerce-cryptapi
55
Description: Accept cryptocurrency payments on your WooCommerce website
6-
Version: 4.8.2
6+
Version: 4.8.3
77
Requires at least: 5.8
88
Tested up to: 6.5.3
99
WC requires at least: 5.8
10-
WC tested up to: 8.9.1
10+
WC tested up to: 9.0.1
1111
Requires PHP: 7.2
1212
Author: cryptapi
1313
Author URI: https://cryptapi.io/

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
373373
#### 4.8.2
374374
* Minor fixes and improvements
375375

376+
#### 4.8.3
377+
* Minor improvements
378+
376379
### Upgrade Notice
377380
#### 4.3
378381
* Please be sure to enable the PHP extension BCMath before upgrading to this version.

controllers/CryptAPI.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,22 @@ function reset_load_coins() {
6767
function load_coins()
6868
{
6969
$transient = get_transient('cryptapi_coins');
70+
7071
if (!empty($transient)) {
71-
return $transient;
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+
}
7280
}
7381

74-
$coins = CryptAPI\Helper::get_supported_coins();
75-
set_transient('cryptapi_coins', $coins, 86400);
82+
$coins['eth']['name'] = $coins['eth']['name'] . ' (ERC20)';
7683

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-
}
84+
# Disabling XMR since it is not supported anymore.
85+
unset($coins['xmr']);
8086

8187
return $coins;
8288
}

define.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
define('CRYPTAPI_PLUGIN_VERSION', '4.8.2');
3+
define('CRYPTAPI_PLUGIN_VERSION', '4.8.3');
44
define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
55
define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ Contributors: cryptapi
33
Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, litecoin, bitcoin cash, shib, doge
44
Requires at least: 5.8
55
Tested up to: 6.5
6-
Stable tag: 4.8.2
6+
Stable tag: 4.8.3
77
Requires PHP: 7.2
88
WC requires at least: 5.8
9-
WC tested up to: 8.6.1
9+
WC tested up to: 9.0.1
1010
License: MIT
1111

1212
Accept cryptocurrency payments on your WooCommerce website
@@ -371,6 +371,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
371371
= 4.8.2 =
372372
* Minor fixes and improvements
373373

374+
= 4.8.3 =
375+
* Minor improvements
376+
374377
== Upgrade Notice ==
375378

376379
= 4.3 =

0 commit comments

Comments
 (0)