Skip to content

Commit a1068fc

Browse files
committed
v1.0.2
* Minor fixes
1 parent 9708cd4 commit a1068fc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

Controller/Index/Callback.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public function execute()
4343

4444
$metaData = json_decode($this->helper->getPaymentResponse($orderId), true);
4545

46+
if ($data['coin'] !== $metaData['blockbee_currency']) {
47+
return $this->response->setBody("*ok*");
48+
}
49+
4650
if ($this->payment->hasBeenPaid($order) || $data['nonce'] != $metaData['blockbee_nonce']) {
4751
return $this->response->setBody("*ok*");
4852
}
@@ -98,9 +102,9 @@ public function execute()
98102
}
99103

100104
if ($remaining_pending <= $min_tx) {
101-
$this->helper->updatePaymentData($orderId, 'blockbee_qr_code_value', BlockbeeHelper::get_static_qrcode($metaData['blockbee_address'], $metaData['blockbee_currency'], $min_tx,$this->scopeConfig->getValue('payment/blockbee/api_key', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), $this->scopeConfig->getValue('payment/blockbee/qrcode_size', \Magento\Store\Model\ScopeInterface::SCOPE_STORE))['qr_code']);
105+
$this->helper->updatePaymentData($orderId, 'blockbee_qr_code_value', BlockbeeHelper::get_static_qrcode($metaData['blockbee_address'], $metaData['blockbee_currency'], $min_tx, $this->scopeConfig->getValue('payment/blockbee/api_key', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), $this->scopeConfig->getValue('payment/blockbee/qrcode_size', \Magento\Store\Model\ScopeInterface::SCOPE_STORE))['qr_code']);
102106
} else {
103-
$this->helper->updatePaymentData($orderId, 'blockbee_qr_code_value', BlockbeeHelper::get_static_qrcode($metaData['blockbee_address'], $metaData['blockbee_currency'], $remaining_pending,$this->scopeConfig->getValue('payment/blockbee/api_key', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), $this->scopeConfig->getValue('payment/blockbee/qrcode_size', \Magento\Store\Model\ScopeInterface::SCOPE_STORE))['qr_code']);
107+
$this->helper->updatePaymentData($orderId, 'blockbee_qr_code_value', BlockbeeHelper::get_static_qrcode($metaData['blockbee_address'], $metaData['blockbee_currency'], $remaining_pending, $this->scopeConfig->getValue('payment/blockbee/api_key', \Magento\Store\Model\ScopeInterface::SCOPE_STORE), $this->scopeConfig->getValue('payment/blockbee/qrcode_size', \Magento\Store\Model\ScopeInterface::SCOPE_STORE))['qr_code']);
104108
}
105109

106110
return $this->response->setBody("*ok*");

README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The BlockBee extension enables your Magento store to get receive payments in cry
2424
* (ETH) Ethereum
2525
* (BCH) Bitcoin Cash
2626
* (LTC) Litecoin
27-
* (XMR) Monero
27+
* (MATIC) Polygon
2828
* (TRX) Tron
2929
* (BNB) Binance Coin
3030
* (USDT) USDT
@@ -97,7 +97,7 @@ This depends on the cryptocurrency you're using. Bitcoin usually takes up to 11
9797

9898
#### Is there a minimum for a payment?
9999

100-
Yes, the minimums change according to the chosen cryptocurrency and can be checked [here](https://blockbee.io/get_started/#fees).
100+
Yes, the minimums change according to the chosen cryptocurrency and can be checked [here](https://blockbee.io/fees).
101101
If the Magento order total is below the chosen cryptocurrency's minimum, an error is raised to the user.
102102

103103
#### Where can I find more documentation on your service?
@@ -117,5 +117,8 @@ The easiest and fastest way is via our live chat on our [website](https://blockb
117117
#### 1.0.1
118118
* Minor bugfixes and improvements.
119119

120+
#### 1.0.2
121+
* Minor bugfixes and improvements.
122+
120123
### Upgrade Notice
121124
* No breaking changes.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "blockbee/blockbee",
33
"description": "BlockBee's Magento extension",
44
"type": "magento2-module",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"keywords": [
77
"blockbee",
88
"magento2_module",

0 commit comments

Comments
 (0)