Hi, this is the simplex tutorial ever seen on this subject. thank you very much. meanwhile, I have a concern, how do I implement the verification section after the payment has been made in my MVC code.
After I surf the web, I stumbled on a script that I used to build these
public IActionResult Validate(string TransactionId, string status) { var data = new { txref = TransactionId, SECKEY = "", include_payment_entity = 1 };
var client = new HttpClient();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
var responseMessage = client.PostAsJsonAsync("ravesandboxapi.flutterwave.com/flwv3-pug/getpaidx…, data).Result;
var responseStr = responseMessage.Content.ReadAsStringAsync().Result;
var response = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponseData>(responseStr);
string amount = null;
if (response.data.status == "successful" && response.data.amount == amount && response.data.chargecode == "00")
{
//Retrieve and save payment details to the database.
}
return View();
}
How do I redirect to this view after payment and retrieve some value to save in my database?
thank you for the response.