Skip to content

Commit e00c6ad

Browse files
committed
v4.7.8
* Minor fixes
1 parent 8c1ad45 commit e00c6ad

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

CryptAPI.php

Lines changed: 3 additions & 3 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.7.7
6+
Version: 4.7.8
77
Requires at least: 5
8-
Tested up to: 6.2
8+
Tested up to: 6.3
99
WC requires at least: 5.8
10-
WC tested up to: 7.6.1
10+
WC tested up to: 7.9.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
@@ -346,6 +346,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
346346
#### 4.7.7
347347
* Minor fixes
348348

349+
#### 4.7.8
350+
* Minor fixes
351+
349352
### Upgrade Notice
350353
#### 4.3
351354
* Please be sure to enable the PHP extension BCMath before upgrading to this version.

controllers/CryptAPI.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,10 @@ function validate_logs()
719719

720720
function process_callback_data($data, $order, $validation = false)
721721
{
722+
$coin = $data['coin'];
723+
724+
$saved_coin = $order->get_meta('cryptapi_currency');
725+
722726
$paid = (float)$data['value_coin'];
723727

724728
$min_tx = (float)$order->get_meta('cryptapi_min');
@@ -727,6 +731,14 @@ function process_callback_data($data, $order, $validation = false)
727731

728732
$history = json_decode($order->get_meta('cryptapi_history'), true);
729733

734+
if ($coin !== $saved_coin) {
735+
$order->add_order_note(
736+
'[MISSMATCHED PAYMENT] Registered a ' . $paid . ' ' . strtoupper($coin) . '. Order not confirmed because requested currency is ' . $crypto_coin . '. If you wish, you may confirm it manually. (Funds were already forwarded to you).'
737+
);
738+
739+
die("*ok*");
740+
}
741+
730742
if (!$data['uuid']) {
731743
if (!$validation) {
732744
die("*ok*");
@@ -1478,7 +1490,7 @@ function order_detail_validate_logs($order)
14781490
}
14791491

14801492
$ajax_url = add_query_arg(array(
1481-
'action' => 'blockbee_validate_logs',
1493+
'action' => 'cryptapi_validate_logs',
14821494
'order_id' => $order->get_ID(),
14831495
), home_url('/wp-admin/admin-ajax.php'));
14841496
?>

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

readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Contributors: cryptapi
33
Tags: crypto payments, woocommerce, payment gateway, crypto, payment, pay with crypto, payment request, bitcoin, bnb, usdt, ethereum, monero, litecoin, bitcoin cash, shib, doge
44
Requires at least: 5
5-
Tested up to: 6.2
6-
Stable tag: 4.7.7
5+
Tested up to: 6.3
6+
Stable tag: 4.7.8
77
Requires PHP: 7.2
88
WC requires at least: 5.8
9-
WC tested up to: 7.6.1
9+
WC tested up to: 7.9.0
1010
License: MIT
1111

1212
Accept cryptocurrency payments on your WooCommerce website
@@ -346,6 +346,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
346346
= 4.7.7 =
347347
* Minor fixes
348348

349+
= 4.7.8 =
350+
* Minor fixes
351+
349352
== Upgrade Notice ==
350353

351354
= 4.3 =

0 commit comments

Comments
 (0)