Hi,
I am new to paynow integration, I am trying to do payment integration, payment created and made successful but result url not get called.
Result URL (HTTP POST) : http://13.244.235.35:9010/PaymentGateway/Update
My service side code :
Controller :
[HttpPost(“Update”)]
public IActionResult Update(PayNowResponse response)
{
try
{
response.SerializeObject().WriteLog();
return Ok();
}
catch (Exception ex)
{
return BadRequest(new { message = ex.Message });
}
}
Model :
public class PayNowResponse
{
public string reference { get; set; }
public decimal amount { get; set; }
public string paynowreference { get; set; }
public string pollurl { get; set; }
public string status { get; set; }
public string hash { get; set; }
}
I am not sure about protocol whether the paynow calls only https. I am using http protocol only for testing purpose.