Calls to InitTxn return status OK but overlay does not show
See original GitHub issueI’ve been debugging an issue with Steam micro transactions which is similar to this issue on the discussion groups:
http://steamcommunity.com/groups/steamworks/discussions/4/215439774870797831/
I had been in contact with Valve support and they suggested I contact the developers of the wrapper before blaming the issue on Steam, so here goes.
I have been able to call InitTxn with our appid, key and my Steam user id with the game open and running through Steam. The result of InitTxn is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE response>
<response>
<result>OK</result>
<params>
<orderid>12935678944090872286</orderid>
<transid>1273805343290106552</transid>
</params>
</response>
However, the in game overlay never prompts the user to authorize the transaction. I’m sure the transactions are going through as calling QueryTxn with the same orderid returns the following:
{
"response": {
"result": "OK",
"params": {
"orderid": "12935678944090872286",
"transid": "1273805343290106552",
"steamid": "76561198396978675",
"status": "Init",
"currency": "USD",
"time": "2017-06-22T15:39:35Z",
"country": "US",
"usstate": "",
"timecreated": "2017-06-22T15:39:35Z",
"items": [
{
"itemid": 253,
"qty": 500,
"amount": 1999,
"vat": 0,
"itemstatus": "Init"
}
]
}
}
}
The solution that the Steam discussion board has is to release the game in a closed beta, and test from that release which is not possible as my company won’t let us release the game in any capacity at this stage in the development. If anyone here has experience the same problem and has a solution that would be very helpful, otherwise my hunch is there is something else happening on Steam’s side of things and I may follow up with Valve support more.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (1 by maintainers)
Top GitHub Comments
Hey guys, sorry this took so long for me to get to.
I do have some ideas how you could get this to work. The first thing I would try is to install your game in the Steam library. It might work out of the box with no files uploaded, or you might need to upload a dummy file (even just an empty text file) to the Steam depot. Then build your game from Unity into your steamapps/common/<yourgame> folder. And then run it from the Steam Library as if you uploaded it to Steam. You will have to set the launch options for your appid/platform and publish those changes too so that Steam runs the correct exe.
If that doesn’t work then maybe using the Steam local content servers would help.
Really strange, now I’am running out of ideas too. Maybe @rlabrecque has some additional hints? Anyway, if you ever solve this issue it would be interesting to know the cause/solution of the problem. Good luck 👍