I am trying to use the AddUserVirtualCurrency sdk function but its not working. I have it formatted right and everything is correct.
function rc(response,error){ if (error){ console.log(error) } } function reward(){ var xauth=localStorage.SessionTicket; var head={"X-Authorization":xauth}; var r={"Amount":100,"VirtualCurrency":"RT"}; PlayFabClientSDK.AddUserVirtualCurrency(r,rc,extraHeaders=head) }
I checked xauth and its a correct session ticket.
I have no idea whats going wrong.