Skip to content

Commit 2a750e5

Browse files
committed
v4.6.6
- Minor fixes
1 parent 6eb08d5 commit 2a750e5

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
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.6.5
6+
Version: 4.6.6
77
Requires at least: 5
88
Tested up to: 6.0.2
99
WC requires at least: 5.8
10-
WC tested up to: 6.9.4
10+
WC tested up to: 7.0.0
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
@@ -289,6 +289,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
289289
* Added option to check for failed callbacks
290290
* Minor fixes
291291

292+
#### 4.6.6
293+
* Minor fixes
294+
292295
### Upgrade Notice
293296
#### 4.3
294297
* Please be sure to enable the PHP extension BCMath before upgrading to this version.

controllers/CryptAPI.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ function __construct() {
5858
add_filter( 'woocommerce_my_account_my_orders_actions', array( $this, 'add_order_link' ), 10, 2 );
5959

6060
add_action( 'woocommerce_admin_order_data_after_order_details', array( $this, 'order_detail_validate_logs' ) );
61-
62-
}
61+
}
6362

6463
function load_coins() {
6564
if ( ! empty( WC_CryptAPI_Gateway::$COIN_OPTIONS ) ) {
@@ -1429,8 +1428,12 @@ function order_detail_validate_logs($order) {
14291428
return;
14301429
}
14311430

1431+
if($order->get_payment_method() !== 'cryptapi') {
1432+
return;
1433+
}
1434+
14321435
$ajax_url = add_query_arg( array(
1433-
'action' => 'cryptapi_validate_logs',
1436+
'action' => 'blockbee_validate_logs',
14341437
'order_id' => $order->get_ID(),
14351438
), home_url( '/wp-admin/admin-ajax.php' ) );
14361439
?>

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.6.5');
3+
define('CRYPTAPI_PLUGIN_VERSION', '4.6.6');
44
define('CRYPTAPI_PLUGIN_PATH', plugin_dir_path(__FILE__));
55
define('CRYPTAPI_PLUGIN_URL', plugin_dir_url(__FILE__));

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tested up to: 6.0.2
66
Stable tag: 4.6.5
77
Requires PHP: 7.2
88
WC requires at least: 5.8
9-
WC tested up to: 6.9.4
9+
WC tested up to: 7.0.0
1010
License: MIT
1111

1212
Accept cryptocurrency payments on your WooCommerce website
@@ -299,6 +299,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
299299
* Added option to check for failed callbacks
300300
* Minor fixes
301301

302+
= 4.6.6 =
303+
* Minor fixes
304+
302305
== Upgrade Notice ==
303306

304307
= 4.3 =

0 commit comments

Comments
 (0)