I am working on an application where I am supposed to get a formData response that contains the below properties. The thing is I am unable to get a property and the JSON property is not working for me.
[AllowAnonymous]
[HttpPost("postResponse")]
public async Task<IActionResult> ValidatePaymentAsync([FromForm] PaymentResponseDto response)
{
_logger.LogInformation ($"API Callback is working --- Response :{JsonConvert.SerializeObject(response)}");
return Ok(await _resourceService.ValidatePaymentAsync(response));
}
public class PaymentResponseDto
{
public string idSession { get; set; }
public string statusPBX { get; set; }
[JsonProperty("3DENROLLED")]
public string _3DENROLLED { get; set; }
public string id3D { get; set; }
public string check { get; set; }
}
The Problem comes with 3DENROLLED. The response contains the value but I am not getting it. Data members also do not work for me.