CommerceService¶
Not yet Class NotCreatable Service
Supports real-world purchases that you can bundle with digital benefits.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
0 Nova members · 18 modern Roblox members not implemented yet
Description¶
CommerceService is a service that supports real-world purchases that you can bundle with virtual items. For information on eligibility and implementation, see Commerce products.
Inheritance¶
Object → Instance → CommerceService
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetCommerceProductInfoAsync |
CommerceService:GetCommerceProductInfoAsync(commerceProductId: string): Dictionary |
Retrieves information about the commerce products you are selling in experience. |
PrepareCommerceProductPurchase |
CommerceService:PrepareCommerceProductPurchase(commerceProductId: string): Dictionary |
— |
PromptCommerceProductPurchase |
CommerceService:PromptCommerceProductPurchase(user: Player, commerceProductId: string): null |
Prompts a user to purchase a commerce product using the provided commerceProductId. Opens a webview that guides the user through the purchasing flow. |
PromptRealWorldCommerceBrowser |
CommerceService:PromptRealWorldCommerceBrowser(player: Player, url: string): null |
Legacy endpoint that opens an in-experience browser to a real-world commerce URL for the specified player; superseded by [CommerceService.PromptCommerceProductPurchase](… |
SignalPromptCommerceProductPurchaseFinished |
CommerceService:SignalPromptCommerceProductPurchaseFinished(productId: string, didTryPurchase: bool, checkoutSessionId: string): null |
— |
UserEligibleForRealWorldCommerceAsync |
CommerceService:UserEligibleForRealWorldCommerceAsync(): bool |
Legacy endpoint that returns whether the current user is eligible for real-world commerce; superseded by PolicyService. |
Events¶
| Member | Signature | Summary |
|---|---|---|
BenefitStatusReceived |
BenefitStatusReceived(isGranted: bool) |
— |
FetchReceipt |
FetchReceipt() |
— |
InExperienceBrowserRequested |
InExperienceBrowserRequested(url: string) |
— |
PromptCommerceProductPurchaseFinished |
PromptCommerceProductPurchaseFinished(user: Player, productId: string) |
Fires when commerce purchase webview has closed - not an indicator that a purchase was successful. |
PromptCommerceProductPurchaseRequested |
PromptCommerceProductPurchaseRequested(commerceProductId: string) |
— |
PurchaseBrowserClosed |
PurchaseBrowserClosed() |
— |
Roblox reference: CommerceService
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.