if (context.Request.QueryString["scm"] == null)
{
context.Response.Write("read=m-1419=scm,,4,,50,Price,,yes,*.,");
return;
}
if (context.Request.QueryString["creditCard"] == null)
{
context.Response.Write("read=m-1422=creditCard,16,16,,,Digits,yes,,*/,");
return;
}
if (context.Request.QueryString["creditCardDateMmYy"] == null)
{
context.Response.Write("read=m-1424=creditCardDateMmYy,4,4,,,Digits");
return;
}
if (context.Request.QueryString["cvv2"] == null)
{
context.Response.Write("read=m-1428=cvv2,3,3,,,Digits");
return;
}
string potc = "Mosad=קוד מוסד&ClientName=שם התורם&Adresse=&Phone=" +
ApiPhone + "&ClientId=&CardNumber=" + context.Request.QueryString["creditCard"] + "&Tokef=" + context.Request.QueryString["creditCardDateMmYy"] + "&Amount=" + context.Request.QueryString["scm"] +
"&Tashloumim=1&Groupe=" + שם קבוצה+ "&Avour=&CVV=" + context.Request.QueryString["cvv2"] + "&Zeout=&Currency=1";
string content;
using (WebClient wc = new WebClient())
{
wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
wc.Encoding = Encoding.GetEncoding("UTF-8");
content = wc.UploadString("https://www.matara.pro/nedarimplus/V6/Files/WebServices/DebitCard.aspx", potc);
}
JToken token = JObject.Parse(content);
if (token["Status"].ToString() == "Error")
{
context.Response.Write("id_list_messag=t-שגיאה," + token["Message"] + ",");
return;
}