path = str_replace("{capture_id}", urlencode($captureId), $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; } }