Skip to content

Commit 767582b

Browse files
committed
v1.0.16
* Minor bugfixes
1 parent ce68170 commit 767582b

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

BlockBee.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Plugin Name: BlockBee Cryptocurrency Payment Gateway
44
Plugin URI: https://blockbee.io/resources/woocommerce/
55
Description: Accept cryptocurrency payments on your WooCommerce website
6-
Version: 1.0.15
6+
Version: 1.0.16
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: BlockBee
1313
Author URI: https://blockbee.io/

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,7 @@ The easiest and fastest way is via our live chat on our [website](https://blockb
200200
#### 1.0.15
201201
* Minor fixes.
202202

203+
#### 1.0.16
204+
* Minor fixes.
205+
203206
### Upgrade Notice

controllers/BlockBee.php

+12
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,10 @@ function validate_logs() {
608608
}
609609

610610
function process_callback_data( $data, $order, $validation = false ) {
611+
$coin = $data['coin'];
612+
613+
$saved_coin = $order->get_meta('blockbee_currency');
614+
611615
$paid = (float) $data['value_coin'];
612616

613617
$min_tx = (float) $order->get_meta( 'blockbee_min' );
@@ -618,6 +622,14 @@ function process_callback_data( $data, $order, $validation = false ) {
618622

619623
$apikey = $this->api_key;
620624

625+
if ($coin !== $saved_coin) {
626+
$order->add_order_note(
627+
'[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).'
628+
);
629+
630+
die("*ok*");
631+
}
632+
621633
if(!$data['uuid']) {
622634
if ( ! $validation ) {
623635
die( "*ok*" );

readme.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
Contributors: blockbee
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: 1.0.15
5+
Tested up to: 6.3
6+
Stable tag: 1.0.16
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
@@ -214,4 +214,7 @@ The easiest and fastest way is via our live chat on our [website](https://blockb
214214
= 1.0.15 =
215215
* Minor fixes.
216216

217+
= 1.0.16 =
218+
* Minor fixes.
219+
217220
== Upgrade Notice ==

0 commit comments

Comments
 (0)