Skip to content

Commit 61ed208

Browse files
author
Ariano Fonseca Ângelo
committed
v4.6.0
* New BlockBee API Url * Minor fixes
1 parent 6fdb9f5 commit 61ed208

6 files changed

Lines changed: 22 additions & 11 deletions

File tree

CryptAPI.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
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.5.2
6+
Version: 4.6.0
77
Requires at least: 5
8-
Tested up to: 6.0.1
8+
Tested up to: 6.0.2
99
WC requires at least: 5.8
1010
WC tested up to: 6.8.0
1111
Requires PHP: 7.2
@@ -128,6 +128,7 @@ function cryptapi_deactivation()
128128
wp_clear_scheduled_hook('cryptapi_cronjob');
129129
}
130130

131+
/*
131132
add_action('admin_notices', 'cryptapi_pro_notice');
132133
133134
function cryptapi_pro_notice()
@@ -144,7 +145,7 @@ function cryptapi_pro_notice()
144145
?>
145146
<div class="notice notice-info is-dismissible">
146147
<p>
147-
Meet CryptAPI Pro, a dashboard to suit all your needs. Get your API Key now: <a href="https://pro.cryptapi.io/" target="_blank">pro.cryptapi.io</a><br/>
148+
Meet BlockBee, a dashboard to suit all your needs. Get your API Key now: <a href="https://pro.cryptapi.io/" target="_blank">pro.cryptapi.io</a><br/>
148149
<button style="text-decoration: none;" class="notice-dismiss cryptapi-pro-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
149150
</p>
150151
</div>
@@ -169,3 +170,4 @@ function cryptapi_pro_notice_dismissed()
169170
if (isset($_GET['cryptapi-dismissed']))
170171
add_user_meta($user_id, 'cryptapi_pro_notice_dismissed', 'true', true);
171172
}
173+
*/

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
267267
#### 4.5.2
268268
* Minor fixes
269269

270+
#### 4.6.0
271+
* New BlockBee API Url
272+
* Minor fixes
273+
270274
### Upgrade Notice
271275
#### 4.3
272276
* Please be sure to enable the PHP extension BCMath before upgrading to this version.

controllers/CryptAPI.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ function init_form_fields()
348348
'title' => __('API Key', 'cryptapi'),
349349
'type' => 'text',
350350
'default' => '',
351-
'description' => __('<strong>NEW: </strong>Insert here your CryptAPI Pro API Key. You can get one here: <a href="https://pro.cryptapi.io/" target="_blank">https://pro.cryptapi.io/</a>. <strong>This field is optional.</strong>', 'cryptapi')
351+
'description' => __('<strong>NEW: </strong>Insert here your BlockBee API Key. You can get one here: <a href="https://dash.blockbee.io/" target="_blank">https://dash.blockbee.io/</a>. <strong>This field is optional.</strong>', 'cryptapi')
352352
),
353353
);
354354

@@ -428,6 +428,7 @@ function payment_fields()
428428
</ul>
429429
</div>
430430
<script>
431+
/*
431432
if(typeof jQuery.fn.selectWoo !== 'undefined') {
432433
jQuery('#payment_cryptapi_coin').selectWoo({
433434
minimumResultsForSearch: -1,
@@ -446,6 +447,8 @@ function formatState(opt) {
446447
}
447448
}
448449
}
450+
451+
*/
449452
</script>
450453
<?php
451454
}
@@ -1062,7 +1065,6 @@ function ca_cronjob()
10621065
$already_paid = $calc['already_paid'];
10631066

10641067
if ($value_refresh !== 0 && $last_price_update + $value_refresh <= time() && !empty($last_price_update)) {
1065-
10661068
if ($remaining === $remaining_pending) {
10671069
$cryptapi_coin = $order->get_meta('cryptapi_currency');
10681070

@@ -1082,7 +1084,6 @@ function ca_cronjob()
10821084
}
10831085

10841086
$order->update_meta_data('cryptapi_last_price_update', time());
1085-
10861087
$order->save();
10871088
}
10881089

@@ -1205,7 +1206,7 @@ public function generate_cryptocurrency_html($key, $data)
12051206
<strong>
12061207
<?php echo __('Addresses', 'cryptapi'); ?>
12071208
</strong><br/>
1208-
<?php echo __("If you are using CryptAPI Pro you can choose if setting the receiving addresses here bellow or in your CryptAPI Pro settings page.<br/>- In order to set the addresses on plugin settings, you need to select “Address Override” while creating the API key.<br/>- In order to set the addresses on CryptAPI Pro settings, you need to NOT select “Address Override” while creating the API key.", 'cryptapi'); ?>
1209+
<?php echo __("If you are using BlockBee you can choose if setting the receiving addresses here bellow or in your BlockBee settings page.<br/>- In order to set the addresses on plugin settings, you need to select “Address Override” while creating the API key.<br/>- In order to set the addresses on BlockBee settings, you need to NOT select “Address Override” while creating the API key.", 'cryptapi'); ?>
12091210
</p>
12101211
</td>
12111212
</tr>

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

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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.0.1
6-
Stable tag: 4.5.2
5+
Tested up to: 6.0.2
6+
Stable tag: 4.6.0
77
Requires PHP: 7.2
88
WC requires at least: 5.8
99
WC tested up to: 6.8.0
@@ -277,6 +277,10 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
277277
= 4.5.2 =
278278
* Minor fixes
279279

280+
= 4.6.0 =
281+
* New BlockBee API Url
282+
* Minor fixes
283+
280284
== Upgrade Notice ==
281285

282286
= 4.3 =

utils/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Helper
88
{
99
private static $base_url = "https://api.cryptapi.io";
10-
private static $pro_url = "https://pro-api.cryptapi.io";
10+
private static $pro_url = "https://api.blockbee.io";
1111
private $own_address = null;
1212
private $payment_address = null;
1313
private $callback_url = null;

0 commit comments

Comments
 (0)