PICO Platform Unity SDK
|
Static Public Member Functions | |
static Task | ConsumePurchase (string sku) |
Records the order fulfillment result for a consumable. More... | |
static Task< ProductList > | GetProductsBySKU (string[] skus) |
Gets a list of purchasable add-ons in the current app. More... | |
static Task< PurchaseList > | GetViewerPurchases () |
Gets a list of purchased add-ons for a user, including durables and unfilfilled consumables. More... | |
static Task< Purchase > | LaunchCheckoutFlow (string sku, string price, string currency) |
Launches the checkout flow for a user to make a payment. More... | |
static Task< Purchase > | LaunchCheckoutFlow2 (Product product) |
Launches the checkout flow for a user to make a payment. More... | |
static Task< ProductList > | GetNextProductListPage (ProductList list) |
Gets the next page of purchasable add-ons. More... | |
static Task< PurchaseList > | GetNextPurchaseListPage (PurchaseList list) |
Gets the next page of purchased add-ons. More... | |
You can diversify user experience and grow your revenue by selling products such as cosmetics, props, and coins/diamonds within your app. The PICO Unity Integration SDK provides In-App Purchase (IAP) service which enables users to purchase products within your app. The IAP service packages a series of payments systems such as Alipay, bank card, and Paypal, thereby providing you with a one-stop multi-payment-method solution.
|
static |
Records the order fulfillment result for a consumable.
sku | The SKU of the add-on to fulfill. |
|
static |
Gets a list of purchasable add-ons in the current app.
skus | The SKUs of the add-ons to retrieve. If this parameter is empty, all purchasable add-ons will be returned. |
|
static |
Gets a list of purchased add-ons for a user, including durables and unfilfilled consumables.
Launches the checkout flow for a user to make a payment.
sku | The SKU of the product the user wants to purchase. |
price | The price for the product. |
currency | The currency of the payment. |
Launches the checkout flow for a user to make a payment.
product | The add-on info which can be acquired by GetProductsBySKU. The Product struct contains the following:
|
|
static |
Gets the next page of purchasable add-ons.
list | The current page of purchasable add-ons. |
|
static |
Gets the next page of purchased add-ons.
list | The current page of purchased add-ons. |