public dn_knet_response ReadResponse() { HttpRequest Request = HttpContext.Current.Request; dn_knet_response Response = new dn_knet_response(); Response.paymentID = Request["PaymentID"]; // Reads the value of the Payment ID passed by GET request by the user. Response.result = Request["Result"]; // Reads the value of the Result passed by GET request by the user. Response.postdate = Request["PostDate"]; // Reads the value of the PostDate passed by GET request by the user. Response.tranid = Request["TranID"]; // Reads the value of the TranID passed by GET request by the user. Response.auth = Request["Auth"]; // Reads the value of the Auth passed by GET request by the user. Response.refr = Request["Ref"]; // Reads the value of the Ref passed by GET request by the user. Response.trackid = Request["TrackID"]; // Reads the value of the TrackID passed by GET request by the user. Response.udf1 = Request["UDF1"]; // Reads the value of the UDF1 passed by GET request by the user. return Response; }
public dn_knet_response ReadErrorResponse() { HttpRequest Request = HttpContext.Current.Request; dn_knet_response res = new dn_knet_response(); res.paymentID = Request["paymentID"]; res.result = Request["result"]; res.postdate = Request["postdate"]; res.tranid = Request["tranid"]; res.auth = Request["auth"]; res.refr = Request["ref"]; res.trackid = Request["trackid"]; res.udf1 = Request["udf1"]; res.udf2 = Request["udf2"]; res.udf3 = Request["udf3"]; res.udf4 = Request["udf4"]; res.udf5 = Request["udf5"]; return res; }