Hi, i am facing a issue when sending payment request from c#. Browser keep loading and not redirecting to paynow. It was successfully running some days ago and suddenly stop working.
public static string CreatePaynowPayment(int appID, string pType)
{
string apikey = “xxxxxx”;
string apiCode = “22156”;
var paynow = new Paynow(apiCode, apikey);
if (pType == “web”)
{
paynow.ResultUrl = baseUrl;
paynow.ReturnUrl = baseUrl + “TradespersonAccount/PaymentSuccess?qid=” + appID + “&ptype=” + pType;
}
else if (pType == “app”)
{
paynow.ResultUrl = baseUrl;
paynow.ReturnUrl = baseUrl + “TradespersonApp/Home/PaymentSuccess?qid=” + appID + “&ptype=” + pType;
}
var payment = paynow.CreatePayment(“Invoice_” + appID,"info@mydomain.com");
float fee = getTradespersonFee();
payment.Add(“Platform Fee”, fee);
var response = paynow.Send(payment);
if (response.Success())
{
var link = response.RedirectLink();
var pollUrl = response.PollUrl();
string result = link + "," + pollUrl;
return result;
}
return "failed";
}
Not getting any response on calling of var response = paynow.Send(payment);