path = str_replace("{authorization_id}", urlencode($authorizationId), $this->path); $this->headers["Content-Type"] = "application/json"; } public function payPalRequestId($payPalRequestId) { $this->headers["PayPal-Request-Id"] = $payPalRequestId; } public function prefer($prefer) { $this->headers["Prefer"] = $prefer; } }