|
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< Purchase > | LaunchCheckoutFlow3 (Product product, string orderComment) |
| Launches the checkout flow for a user to make a payment. More... | |
| static Task< SubscriptionStatus > | GetSubscriptionStatus (string sku) |
| Gets the subscription status of a subscription add-on. 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.
|
inlinestatic |
Records the order fulfillment result for a consumable.
| sku | The SKU of the add-on to fulfill. |
|
inlinestatic |
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. |
|
inlinestatic |
Gets a list of purchased add-ons for a user, including durables and unfilfilled consumables.
|
inlinestatic |
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's information which can be acquired by GetProductsBySKU. |
Launches the checkout flow for a user to make a payment.
| product | The add-on's information which can be acquired by GetProductsBySKU. |
| orderComment | The comment for the order. If the user successfully purchases this add-on, The order's comment can be accessed in Purchase. The length of this field cannot exceed 1024 bytes in UTF-8 encoding. |
|
inlinestatic |
Gets the subscription status of a subscription add-on.
| sku | The SKU of the add-on. |
|
inlinestatic |
Gets the next page of purchasable add-ons.
| list | The current page of purchasable add-ons. |
|
inlinestatic |
Gets the next page of purchased add-ons.
| list | The current page of purchased add-ons. |