buyItem()
Buy a shop Item
Trigger a purchase of the selected item by a User. Requires logged in user.
Parameters
export type BuyItemProps = {
itemId: string;
}
Examples
const bought = await assetlayer.shop.buyItem({
itemId: 'itemId'
});
Return Types
type ReturnType = boolean;
Last updated