Problem with PromptProductPurchase in Studio

I am testing PromptProductPurchase in Studio. I tried both in Server and Local script and I am getting the same error: “Your purchase failed because something went wrong. Your account has not been charged. Please try again later”
The player is a valid instance. The product_id which I send is a valid product id - integer.
The prompt asking the player to confirm the purchase does not appear at all.

Any idea, what could be other reason for this error?


It’s likely that you are using the wrong PromptPurchase function depending on what sort of item you want the player to buy. What sort of product are you trying to sell?

It is a Developer product. It should be the correct function

In that case can you show the PromptProductPurchase script?

1 Like
	game.MarketplaceService:PromptGamePassPurchase(player, product_id)

It looks like it usually should work. And there were no errors in the console about it either?

Smart me forgot you mentioned it-

Another thing that could cause it would be if the developer product is off-sale

Thats PromptGamePassPurchase, not PromptProductPurchase.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.