var jsonRequest = JsonSerializer.Serialize(requestObj);
var result = RapydApiRequest.Utilities.MakeRequest("POST", "/v1/checkout", jsonRequest, accessKey, secretKey, rapydSetting.UseSandbox);
while calling this things , facing issue on SANDBOX its working fine , any reason or any help will be great
calling like this
try
{
string httpMethod = method;
Uri httpBaseURL = sandbox ? new Uri("https://sandboxapi.rapyd.net") : new Uri("https://rapyd.net");
string httpURLPath = urlPath;
string httpBody = body;
string salt = GenerateRandomString(24);
long timestamp = DateTimeOffset.Now.ToUnixTimeSeconds();
string signature = Sign(httpMethod, httpURLPath, salt, timestamp, httpBody, accessKey, secretKey);
Uri httpRequestURL = new Uri(httpBaseURL, urlPath);
WebRequest request = HttpWebRequest.Create(httpRequestURL);
request.Method = httpMethod;
request.ContentType = "application/json";
request.Headers.Add("access_key", accessKey);
request.Headers.Add("salt", salt);
request.Headers.Add("timestamp", timestamp.ToString());
request.Headers.Add("signature", signature);
return HttpRequest(request, body);
}
catch (Exception ex)
{
return "Rapyd : Error generating request options: " + ex;
}
Rapyd : Error occurred : System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.HttpWebRequest.GetResponse()
at RapydApiRequest.Utilities.HttpRequest(WebRequest request, String body) The remote server returned an error: (404) Not Found.