我是Asp Classic的新手,我们要求将Steam Payment整合到网上。
有可能吗?
添加了以下代码:
<html>
<head>
<title>Buy BanaCash</title>
</head>
<body>
<form id="form1" target="_new" enctype="application/x-www-form-urlencoded" name="form1" action="https://api.steampowered.com/ISteamMicroTxnSandbox/InitTxn/v3/?key=#################&format=json" method="post">
<input type="hidden" id="orderid" name="orderid" value="938473"/>
<input type="hidden" id="steamid" name="steamid" value="################"/>
<input type="hidden" id="appid" name="appid" value="######"/>
<input type="hidden" id="itemcount" name="itemcount" value="1"/>
<input type="hidden" id="language" name="language" value="EN"/>
<input type="hidden" id="currency" name="currency" value="USD"/>
<!--input type="hidden" id="usersession" name="usersession" value="web"/>
<input type="hidden" id="ipaddress" name="ipaddress" value="127.0.0.1"/-->
<input type="hidden" id="itemid[0]" name="itemid[0]" value="12345"/>
<input type="hidden" id="qty[0]" name="qty[0]" value="1"/>
<input type="hidden" id="amount[0]" name="amount[0]" value="1000"/>
<input type="hidden" id="description[0]" name="description[0]" value="10000TCoin"/>
<input type="hidden" id="category[0]" name="category[0]" value="TCoin"/>
</form>
</body>
<script>
document.getElementById("form1").submit();
</script>
</html>
Steam Web Api回复:
{
"response": {
"result": "Failure",
"params": {
"orderid": "938473"
},
"error": {
"errorcode": 7,
"errordesc": "User ############ not logged in"
}
}
}
你可以在回复中看到我收到错误