From 6692309ba2ca19d4e75d5fcb1d5b9cf7f38e8253 Mon Sep 17 00:00:00 2001 From: Vishal Sancheti Date: Wed, 29 Jun 2016 15:47:08 +0530 Subject: [PATCH] fix array to string conversion error Fix for Error : GuzzleHttp\Psr7\Request could not be converted to string --- src/Traits/PayPalRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/PayPalRequest.php b/src/Traits/PayPalRequest.php index 477ed3e5..a59a84f3 100644 --- a/src/Traits/PayPalRequest.php +++ b/src/Traits/PayPalRequest.php @@ -165,7 +165,7 @@ private function doPayPalRequest($method, $params) } catch (BadResponseException $e) { throw new \Exception($e->getRequest() . " " . $e->getResponse()); } catch (\Exception $e) { - $message = $e->getRequest(). " " . $e->getResponse(); + $message = $e->getMessage(); } return [