Opens a purchase dialog for the user. It will prompt them to confirm the purchase provided. If the user completes the purchase, a receipt fulfillment event will be fired on the server.
The product to be purchased. You can find the ID in the create dashboard.
The amount of this product to purchase.
Optional
purchaserUserId: stringThe user that will purchase the product. If called on client this defaults to the local player id.
Optional
recipientUserId: stringThe user that will receive the product. If not provided, it defaults to purchaserUserId.
true
if the prompt was displayed.
Prompt players to buy products in your game.