Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeproduct | The product to purchase. |
payload | Any additional developer information to associate with the purchase. |
productId | The identifier for the product to purchase. This may differ from the store-specific product ID. |
Initiate a purchase for a specific product.
The application will be informed of the result via their IStoreListener
implementation.
See Also: Product for an example usage.