Convert below php code into c# httpwebrequest

Job ID: 34964976

Budget: ₹100 – ₹400 INR

$client = new \GuzzleHttp\Client();
$response = $client->request('POST', $uri, [
'json' => [
"intent" => "CAPTURE",
"purchase_units" => [

[
"amount" => [
"currency_code" => "USD",
"value" => $price
]
]
],
"application_context" => [

"return_url" => route("capturePayment"),
"cancel_url" => route("showPaypalGuestMainForm")
]
],
'headers' => [

'Accept' => 'application/json',
'Accept-Language' => 'en_US',
'Content-Type' => 'application/json',
],
'auth' => [$clientId, $secret, 'basic']
]);
return json_decode($response->getBody(), true);
Related categories: PHP .NET C# Programming