diff --git a/src/Traits/PayPalAPI/Orders.php b/src/Traits/PayPalAPI/Orders.php index 64a535af..bed80ae6 100644 --- a/src/Traits/PayPalAPI/Orders.php +++ b/src/Traits/PayPalAPI/Orders.php @@ -30,11 +30,11 @@ public function updateOrder(string $order_id, array $data) { $this->apiEndPoint = "v2/checkout/orders/{$order_id}"; - $this->options['json'] = (object) $data; + $this->options['json'] = $data; $this->verb = 'patch'; - return $this->doPayPalRequest(); + return $this->doPayPalRequest(true); } /**