Forum PayVault how to use PayVault.Give

Discussion and help relating to the PlayerIO payment solution, PayVault.

how to use PayVault.Give

Postby Hindu Bro » April 10th, 2017, 8:18 pm

When i try to use PayVault.Give function there is "BuyItemInfo[]items" how to i give that player an item for ex "giftitem"
Hindu Bro
Posts: 2
Joined: September 17th, 2015, 7:40 am

Re: how to use PayVault.Give

Postby Henrik » April 12th, 2017, 1:41 am ... uyiteminfo

Something like this:

Code: Select all
client.PayVault.Buy(true, new BuyItemInfo[]{
    new BuyItemInfo("giftitem")
}, delegate() {
    //Success, vault updated
}, delegate(PlayerIOError error) {
Posts: 1849
Joined: January 4th, 2010, 1:53 pm

Return to PayVault