我在使用 .Net 从 2Checkout 获取返回参数时遇到问题,我目前正在使用演示模式,产品列表已成功发送到 2checkout,当返回 (x_receipt_link_url) 时没有任何反应通知购买已完成,尽管我正在添加一个块来获取返回参数,我正在使用类似的东西,但具有不同的值
//Check for response from 2Checkout
if (Request.Params["credit_card_processed"] != null)
{
//Initialize returned parameters
string key = Request.Params["key"];
string sid = "1303908";
string secret_word = "tango";
string merchant_order_id = Request.Params["merchant_order_id"];
string order_number = Request.Params["order_number"];
string total = Request.Params["total"];
//Compute our hash
string string_to_hash = secret_word + sid + order_number + total;
string our_hash = getMd5Hash(string_to_hash);
//Compare hashes and update response string
if (our_hash != key)
{
response = "ERROR: MD5 hash did not match!";
}
else
{
response = "Thank you for your Order!";
}
}
好心劝告?谢谢你的帮助。