public PaymentResult Authorise(PaymentRequest paymentRequest, RequestOptions requestOptions = null) { var jsonRequest = Util.JsonOperation.SerializeRequest(paymentRequest); var jsonResponse = _authorise.Request(jsonRequest, requestOptions); return(JsonConvert.DeserializeObject <PaymentResult>(jsonResponse)); }
public PaymentResult Authorise(PaymentRequest paymentRequest) { PaymentResult paymentResult = null; try { var jsonRequest = Util.JsonOperation.SerializeRequest(paymentRequest); var jsonResponse = _authorise.Request(jsonRequest); paymentResult = JsonConvert.DeserializeObject <PaymentResult>(jsonResponse); } catch (Exception ex) { throw ex; } return(paymentResult); }