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