diff --git a/composer.json b/composer.json index e5ac326..4e3ed75 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "license": "MIT", "description": "Payment package for live-controls", "type": "library", - "version": "2.1.6", + "version": "2.1.7", "autoload": { "psr-4": { "LiveControls\\Payment\\": "src/" diff --git a/config/config.php b/config/config.php index 28df4ea..fa044dd 100644 --- a/config/config.php +++ b/config/config.php @@ -1,6 +1,7 @@ true, 'debug' => config('app.debug', false), 'pagseguro_email_debug' => env('PAGSEGURO_EMAIL_DEBUG',null), 'pagseguro_token_debug' => env('PAGSEGURO_TOKEN_DEBUG', null), diff --git a/src/Scripts/PagSeguro/RedirectCheckout3.php b/src/Scripts/PagSeguro/RedirectCheckout3.php index 45dc6b5..e9d8d06 100644 --- a/src/Scripts/PagSeguro/RedirectCheckout3.php +++ b/src/Scripts/PagSeguro/RedirectCheckout3.php @@ -115,7 +115,7 @@ public static function generateDigitalCode(array $items, PaymentSender|null $sen if($response->getStatusCode() != 200 && $response->getStatusCode() != 201){ throw new Exception($response->getStatusCode().': '.$response->getBody()); } - if(config('livecontrols_payment.debug')){ + if(config('livecontrols_payment.debug') || config('livecontrols_payment.logging')){ Log::debug('[PAGSEGURO REQUEST] '.json_encode($requestArray)); Log::debug('[PAGSEGURO RESPONSE] '.$response->getBody()); }