You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blockonomics-woocommerce.php
+3-6Lines changed: 3 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -282,22 +282,19 @@ private function checkForErrors($responseObj, $woocommerce) {
282
282
if(!isset($responseObj->response_code)) {
283
283
$error_str = __('Your webhost is blocking outgoing HTTPS connections. Blockonomics requires an outgoing HTTPS POST (port 443) to generate new address. Check with your webhosting provider to allow this.', 'blockonomics-bitcoin-payments');
284
284
285
-
} elseif(!ini_get('allow_url_fopen')) {
286
-
$error_str = __('The allow_url_fopen is not enabled, please enable this option to allow address generation.', 'blockonomics-bitcoin-payments');
287
-
288
285
} else {
289
286
290
287
switch ($responseObj->response_code) {
291
288
292
-
case'HTTP/1.1 200 OK':
289
+
case200:
293
290
break;
294
291
295
-
case'HTTP/1.1 401 Unauthorized': {
292
+
case401: {
296
293
$error_str = __('API Key is incorrect. Make sure that the API key set in admin Blockonomics module configuration is correct.', 'blockonomics-bitcoin-payments');
0 commit comments