Skip to content

Commit b590cf6

Browse files
committed
v4.8.4
* Minor bugfixes
1 parent 10dee5c commit b590cf6

File tree

6 files changed

+25
-8
lines changed

6 files changed

+25
-8
lines changed

CryptAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.3
6+
Version: 4.8.4
77
Requires at least: 5.8
88
Tested up to: 6.5.3
99
WC requires at least: 5.8

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
376376
#### 4.8.3
377377
* Minor improvements
378378

379+
#### 4.8.4
380+
* Minor improvements
381+
379382
### Upgrade Notice
380383
#### 4.3
381384
* Please be sure to enable the PHP extension BCMath before upgrading to this version.

controllers/CryptAPI.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ function load_coins()
7979
}
8080
}
8181

82-
$coins['eth']['name'] = $coins['eth']['name'] . ' (ERC20)';
83-
8482
# Disabling XMR since it is not supported anymore.
8583
unset($coins['xmr']);
8684

@@ -909,6 +907,7 @@ function thankyou_page($order_id)
909907
}
910908

911909
$total = $order->get_total();
910+
$coins = $this->load_coins();
912911
$currency_symbol = get_woocommerce_currency_symbol();
913912
$address_in = $order->get_meta('cryptapi_address');
914913
$crypto_value = $order->get_meta('cryptapi_total');
@@ -987,6 +986,9 @@ function thankyou_page($order_id)
987986
<?php
988987
}
989988
?>
989+
<div class="ca_qrcode_coin">
990+
<?php echo esc_attr(strtoupper($coins[$crypto_coin]['name'])); ?>
991+
</div>
990992
</figure>
991993
<?php
992994
if ($qr_code_setting != 'hide_ammount' && $qr_code_setting != 'hide_without_ammount') {
@@ -1029,6 +1031,9 @@ function thankyou_page($order_id)
10291031
<img class="ca_qrcode no_value"
10301032
src="data:image/png;base64,<?php echo esc_attr($qr_code_img); ?>"
10311033
alt="<?php echo esc_attr(__('QR Code without value', 'cryptapi')); ?>"/>
1034+
<div class="ca_qrcode_coin">
1035+
<?php echo esc_attr(strtoupper($coins[$crypto_coin]['name'])); ?>
1036+
</div>
10321037
</figure>
10331038
<div class="ca_qrcode_buttons">
10341039
<button class="ca_qrcode_btn no_value active"
@@ -1064,7 +1069,7 @@ function thankyou_page($order_id)
10641069
</div>
10651070
<div class="ca_payment_notification ca_notification_remaining" style="display: none">
10661071
<?php echo '<strong>' . esc_attr(__('Notice', 'cryptapi')) . '</strong>: ' . sprintf(esc_attr(__('For technical reasons, the minimum amount for each transaction is %1s, so we adjusted the value by adding the remaining to it.', 'cryptapi')),
1067-
$min_tx . ' ' . strtoupper($crypto_coin),
1072+
$min_tx . ' ' . esc_attr(strtoupper($coins[$crypto_coin]['name'])),
10681073
'<span class="ca_notification_remaining"></span>'
10691074
); ?>
10701075
</div>
@@ -1073,7 +1078,7 @@ function thankyou_page($order_id)
10731078
?>
10741079
<div class="ca_time_refresh">
10751080
<?php echo sprintf(esc_attr(__('The %1s conversion rate will be adjusted in', 'cryptapi')),
1076-
strtoupper($crypto_coin)
1081+
esc_attr(strtoupper($coins[$crypto_coin]['name']))
10771082
); ?>
10781083
<span class="ca_time_seconds_count"
10791084
data-soon="<?php echo esc_attr(__('a moment', 'cryptapi')); ?>"

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.3');
3+
define('CRYPTAPI_PLUGIN_VERSION', '4.8.4');
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
@@ -3,7 +3,7 @@ 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.3
6+
Stable tag: 4.8.4
77
Requires PHP: 7.2
88
WC requires at least: 5.8
99
WC tested up to: 9.0.1
@@ -374,6 +374,9 @@ The easiest and fastest way is via our live chat on our [website](https://crypta
374374
= 4.8.3 =
375375
* Minor improvements
376376

377+
= 4.8.4 =
378+
* Minor improvements
379+
377380
== Upgrade Notice ==
378381

379382
= 4.3 =

static/cryptapi.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,4 +598,10 @@
598598
.ca_payment-panel.auto .ca_payment_confirmed h2, .ca_payment-panel.auto .ca_payment_cancelled h2 {
599599
color: #FFF;
600600
}
601-
}
601+
}
602+
603+
.ca_qrcode_coin {
604+
margin-top: 10px;
605+
text-align: center;
606+
font-weight: bold;
607+
}

0 commit comments

Comments
 (0)