Hello,
I’m trying to request a payment using the C# SDK and Express Mobile Transaction mode.
I’m using this code:
var paynow = new Webdev.Payments.Paynow(integrationID, integrationKey);
paynow.ResultUrl = notifyURL;
// Create a new payment
var payment = paynow.CreatePayment(reference_id,opMail);
// Add items to the payment
payment.Add(“deposit”, amount);
// Send payment to paynow
var response = paynow.SendMobileAsync(payment, mobile, “ecocash”);
string pollUrl = “”;
// Check if payment was sent without error
if (response.Result.Success())
{
pollUrl = response.Result.PollUrl();
}
But the code is timing out when trying to get the result of the payment request at this part of the code:
if (response.Result.Success())
Is there anything wrong?
Thanks