question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calls to InitTxn return status OK but overlay does not show

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rlabrecquecommented, Jul 7, 2017

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.

1reaction
NKnusperercommented, Jun 28, 2017

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 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

ISteamMicroTxn Interface
Query the status of an order that was previously created with InitTxn. This method has previous versions which are no longer officially supported....
Read more >
Why LoadingController throws 'Overlay does not exist ...
The "overlay doesn't exist" error happens when you dismiss the loader before presenting it, your code seems correct, but to make sure, ...
Read more >
Steam overlay not showing up [Unity]
Hi, I can't get Steam overlay to show up. Once I execute the code bellow, both StartPurchase() and PayForPurchase() return the expected ...
Read more >
Untitled
Bug 691313 - Need TLS/SSL error messages in repl status and errors log - Bug ... server should not call a plugin after...
Read more >
patch
++Status message: MSG""", ++ 'fix' : """Replication is not in synchronization but it may recover. Continue to ++monitor this agreement.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found