Hey all, is there any way to add an item manually to players inventory from the code side? Thanks.
Hey all, is there any way to add an item manually to players inventory from the code side? Thanks.
Yes, you can use the GrantItemsToUser API call from a dedicated game server or from Cloud Script.
Hey, alright but I'm very confused with your cloudscript... There's no syntax highlighting? How do I even know what to type there? No example code? Another thing is, I'm trying to implement paypal payments but your documentation is more confusing then helping. Why do I need a return link? This makes no sense to me. What's gonna happen when I start purchase? PayPal window opens automatically? How does that work now? I also get this error all time
"Failed to initiate transaction with payment provider", I added playfab to the third party api access,my merchnatID is set up. I feel really lost in your docs.
All titles are automatically set up with a sample Cloud Script as revision 1, which contains an example of using GrantItemsToUser. You can also find that script and other examples here: https://github.com/PlayFab/CloudScriptSamples.
For an easier time working with Cloud Script, I would recommend using TypeScript development: https://playfab.com/blog/typescript2/.
To prevent confusion, I've started a new thread for the PayPal questions (since it's a different topic) here: https://community.playfab.com/questions/9816/questions-on-paypal-payments.html?childToView=9817#answer-9817
2 People are following this question.