From f9ca09db83f71ccfd38683b2bbb7e3d3dab902eb Mon Sep 17 00:00:00 2001 From: anktd Date: Mon, 15 Jul 2024 10:53:43 +0530 Subject: [PATCH 1/2] fix headers already sent error in version 3.7.4 --- php/form_fields.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/form_fields.php b/php/form_fields.php index d04909f..4a71cfd 100755 --- a/php/form_fields.php +++ b/php/form_fields.php @@ -1,6 +1,7 @@ - Date: Mon, 15 Jul 2024 13:18:25 +0530 Subject: [PATCH 2/2] fix DynamicProperties error by declaring api_key variable --- php/Blockonomics.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/php/Blockonomics.php b/php/Blockonomics.php index be0a8c2..64090a7 100755 --- a/php/Blockonomics.php +++ b/php/Blockonomics.php @@ -38,8 +38,9 @@ public function calculate_total_paid_fiat($transactions) { return $rounded_total_paid_fiats; } - - + + private $api_key; + public function __construct() { $this->api_key = $this->get_api_key(); @@ -134,7 +135,7 @@ public function get_callbacks($crypto) $response = $this->get($url, $this->api_key); return $response; } - + public function check_get_callbacks_response_code($response){ $error_str = ''; //TODO: Check This: WE should actually check code for timeout