Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array to string conversion #12

Open
Maidomax opened this issue Jan 30, 2019 · 0 comments
Open

Array to string conversion #12

Maidomax opened this issue Jan 30, 2019 · 0 comments

Comments

@Maidomax
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant