Error with processing transaction outside of Studio

I have a button, that when pressed prompts you to purchase a Developer Product. You can successfully finish a test transaction, but outside of studio, it results in an error: (sorry for the weird name of the Dev Product)

Why is this happening only when playing the game? Is this because I can’t purchase my own Dev Product?

If you are making that game in Team Create, try to comitt all scripts and publish the game again

(view → drafts → comitt)

Thank you for the suggestion! I’ll make sure to try it when I get the chance.