CheckTransactionStatus


#1

How can I wait until mobile payment is done or times out before sending response. My code is below and status is always not Paid.

StatusResponse status = paynow.PollTransaction(pollUrl);

                    if (status.Paid())
                    {
                        JObject resp = new JObject();
                        resp.Add("code", 200);
                        resp.Add("data", JsonConvert.SerializeObject(response.GetData()));
                        return resp;
                    }