Open Maidomax opened 5 years ago
I am using the service like this:
public function sendIpnValidateResponse() { $ipn = new PaypalIPNListener(); $ipn->use_sandbox = config('paypal.mode') == 'sandbox'; try { $verified = $ipn->processIpn(); } catch (\Exception $e) { \Log::error('Problem with IPN validation'); \Log::error($e->getMessage()); $verified = false; return $verified; } \Log::debug('IPN Validation response is' . ($verified ? 'VERIFIED' : 'INVALID')); \Log::debug('Report:'); \Log::debug($ipn->getTextReport()); return $verified; }
And I see this in the logs:
[2019-01-30 23:45:00] staging.DEBUG: IPN Validation response isVERIFIED [2019-01-30 23:45:00] staging.DEBUG: Report: [2019-01-30 23:45:00] staging.ERROR: Array to string conversion {"exception":"[object] (ErrorException(code: 0): Array to string conversion at /var/www/html/platform/vendor/fahim/laravel5-paypal-ipn/src/PaypalIPNListener.php:244) [stacktrace] #0 /var/www/html/platform/vendor/fahim/laravel5-paypal-ipn/src/PaypalIPNListener.php(244): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Array to string...', '/var/www/html/p...', 244, Array) #1 /var/www/html/platform/app/Services/AdaptivePaypalService.php(155): Fahim\\PaypalIPN\\PaypalIPNListener->getTextReport() #2 /var/www/html/platform/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(237): App\\Services\\AdaptivePaypalService->sendIpnValidateResponse()
Seems there is a problem with the getTextReport() method.
getTextReport()
I am using the service like this:
And I see this in the logs:
Seems there is a problem with the
getTextReport()
method.