Skip to main content
New Participant
July 5, 2025
Solved

In-World Purchase (IWPSeller) Gizmo question

I have been experimenting with the in world shop gizmo with the commerce mechanics. While the World shop itself works fine, I'm confused about the IWPSeller gizmo.

When putting the IWPSeller gizmo into my world and configuring it to a single item and setting it as a trigger/button.

I get this menu pop-up when triggering the interaction with the IWPSeller:

I don't see any options to purchase the single item in-world and it just tells me to load it on a VR headset. Is this intentions? Are we only supposed to use this Gizmo for VR worlds?

Note: I am testing this within the Horizon World Desktop editor.

Inspiring
July 6, 2025

It will work on mobile and VR but yes it seems like it doesn't show up when previewing on desktop or the web. You'll need to connect the purchasing via scripting. Documentation is here. Though I've been having trouble testing it. It inconsistently works and it is hard to tell if it is Horizon Worlds being buggy or bad implemenation on my part. 
https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/monetization/meta-horizon-worlds-inworld-purchase-guide

10 replies

Inspiring
July 6, 2025

It will work on mobile and VR but yes it seems like it doesn't show up when previewing on desktop or the web. You'll need to connect the purchasing via scripting. Documentation is here. Though I've been having trouble testing it. It inconsistently works and it is hard to tell if it is Horizon Worlds being buggy or bad implemenation on my part. 
https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/monetization/meta-horizon-worlds-inworld-purchase-guide

Inspiring
July 7, 2025

Depending on what you are going for, this video tutorial and provided script from Vidyuu may be helpful. 
This tutorial is particularly useful for a single consumable that is set to auto-use.
Consumables used from the Horizon Worlds inventory would be handled differently as would durables and packs (which have some special sku variant that I haven't identified yet). 
https://www.youtube.com/watch?v=WQpkSzU20xI

BenSH
Community Manager
July 7, 2025

IWPs only work on VR and Mobile, you will not be able to make any purchases or tests using the web client.

Community Events Calendar Sign up for this Month's MHCP Bonuses
Inspiring
July 26, 2025

The code in the attached youtube link for IWPSeller gizmo does not work today. Could anyone provide a code that actually works. I have tried different things but none of them trigger the Codeblock OnItemPurchase Event when I buy or cancel. I tried listening for Local/Network Broadcast, listening to the entity, including the gizmo entity. Nothing seems to work.

Inspiring
July 26, 2025

Can you describe more specifically what you are trying to do? In my case I had trouble getting "Item Packs" to work but I was able to get sale of individual items to work. Is this what you might be having trouble with? 

The problem in the case of "Item Packs" is that the SKU did not end up matching the packs so the sale would fail. There is probably a way around this by first using script to identify the actual SKU of that IWP item pack. 

However, my approach was just to fall back on the sale of an individual auto-consumed In World Purchase item that upon purchase would add 10 of the consumable (effectively the same as an item pack). This worked using the youtube video for reference. 

edit: added working script sample