@@ -43,6 +43,10 @@ public function execute()
43
43
44
44
$ metaData = json_decode ($ this ->helper ->getPaymentResponse ($ orderId ), true );
45
45
46
+ if ($ data ['coin ' ] !== $ metaData ['blockbee_currency ' ]) {
47
+ return $ this ->response ->setBody ("*ok* " );
48
+ }
49
+
46
50
if ($ this ->payment ->hasBeenPaid ($ order ) || $ data ['nonce ' ] != $ metaData ['blockbee_nonce ' ]) {
47
51
return $ this ->response ->setBody ("*ok* " );
48
52
}
@@ -98,9 +102,9 @@ public function execute()
98
102
}
99
103
100
104
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 ' ]);
102
106
} 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 ' ]);
104
108
}
105
109
106
110
return $ this ->response ->setBody ("*ok* " );
0 commit comments