Hi, I am currently working on Microtransactions with Steam. The serverside Part of the whole transaction process is already working and currently i need to implement the SteamCallback OnMicroTxnAuthorizationResponse after I click “authorize” in my SteamOverlay. However the Callback is not working at the Moment, this is what I got so far:
Header file:
This Class is in a PlayerController which is parent to a BlueprintController which is DefaultController in a shop only Gamemode. In addition im calling SteamAPI_RunCallbacks() every frame from a blueprint library. I do not know what I am missing to make the callback work and neither the Steamworks Documentation nor the example project are helpfull.
Hi, sorry to bump an old thread but I have the same problem.
I have the STEAM_CALLBACK in my gameinstance and the SteamAPI_RunCallbacks() in an actor tick. Everything compile, when the steam overlay opens and I click on autorize but my callback function never fire.
I noticed that for the leaderboard example on steam documentation, you had to make a request (SteamUserStats()->FindLeaderboard( “Best Score” );), is there something similar for microtransactions or is this just for CallResults?
This was weird because OnPurchaseResponse you don’t have to define in your header file. The callback macro (STEAM_CALLBACK) does the defining so you can directly implement it in your cpp file. Confused me a fair bit.