C# 如何在asp.net mvc中发布payumoney中的货币代码
如何将货币代码发布为美元和印度。默认情况下,它使用INDC# 如何在asp.net mvc中发布payumoney中的货币代码,c#,asp.net-mvc,payumoney,C#,Asp.net Mvc,Payumoney,如何将货币代码发布为美元和印度。默认情况下,它使用IND [HttpPost] public void Plans(UserRegistreModel model) { string firstName = model.FirstName; string middleName = model.MiddleName; string lastName = model.LastName; string amount = Convert.ToString(model.Am
[HttpPost]
public void Plans(UserRegistreModel model)
{
string firstName = model.FirstName;
string middleName = model.MiddleName;
string lastName = model.LastName;
string amount = Convert.ToString(model.Amount);
string Noofemp = model.NoOfEmployees;
string productInfo = "HRMS";
string email = model.Email;
string phone = model.Contact;
string FirmName = model.FirmName;
//string surl = form["txtsurl"].ToString();
//string furl = form["txtfurl"].ToString();
RemotePost myremotepost = new RemotePost();
string key = "";
string salt = "";
//posting all the parameters required for integration.
myremotepost.Url = "https://secure.payu.in/_payment";
myremotepost.Add("key", "");
string txnid = Generatetxnid();
myremotepost.Add("txnid", txnid);
myremotepost.Add("amount", amount);
myremotepost.Add("productinfo", productInfo);
myremotepost.Add("firstname", firstName);
myremotepost.Add("phone", phone);
myremotepost.Add("email", email);
//UserRegistreModel register = new UserRegistreModel();
TempData["model"] = model;
myremotepost.Add("surl", "");
myremotepost.Add("furl", "");
string hashString = key + "|" + txnid + "|" + amount + "|" + productInfo + "|" + firstName + "|" + email + "|||||||||||" + salt;
string hash = Generatehash512(hashString);
myremotepost.Add("hash", hash);
myremotepost.Post();
}
你可以这样做
myremotepost.Add("currency", "INR");
它将为当前请求设置货币INR。默认情况下,它将使用myremotepost将货币设置为INR。添加(“货币”、“美元”);但它不起作用我读了pdf,上面写着金额:金额是交易的总金额(大于0),单位为印度卢比,没有货币符号或其他非数字字符。只允许小数点。我认为美元是不允许的。当你向某人收取60美元时,是收取1美元还是60美元?(使用固定货币美元)60美元收取60.00卢比。@Ritesh看起来黄金和白金计划支票中允许使用美元