Payments
The Payments service provides methods for creating and managing payments in your game. Check out the PaymentsError class for error codes that can be returned by the Payments service.
Properties
Methods
Acknowledge a purchase made by the current user.
Parameters
purchase
wasConsumed
boolean
Returns
void
Acknowledge a purchase made by the current user.
Parameters
Returns
void
Returns
void
Get a product by its ID.
Parameters
productId
string
callback
(product: WorldProduct, error: PaymentsError) -> ()
Returns
void
Get a list of In-World Purchases (IWP).
Parameters
cursorId
string
callback
(products: {WorldProduct}, nextCursorId: string, error: PaymentsError) -> ()
Returns
void
Get a list of purchases made by the specified user.
Parameters
player
productId
string
limit
number
cursorId
string
callback
(purchases: {WorldProductPurchase}, nextCursorId: string, error: PaymentsError) -> ()
Returns
void
Prompt the current user to make a purchase.
Parameters
productId
string
callback
(obj: boolean) -> ()
Returns
void
Updated 1 day ago