Skip to main content
Samsung Developer Program

Develop

Integrate Gear IAP functionality into your Gear apps and Gear watch face apps to sell in-app items

 

Your Gear apps and Gear watch face apps can sell in-app items after you integrate Gear In-App Purchase (Gear IAP) functionality via either Gear IAP Web APIs or Gear IAP Native APIs.  Gear IAP is supported by the Tizen Wearables platform v2.3.2 and later.  

There are many ways you can design and develop your app to support the sale of Gear IAP in-app items. Below is a straightforward way that demonstrates the key steps using Gear Web IAP API calls.

  1. Get a commercial Seller Office account.
  2. Register your app and its in-app items with Samsung Seller Office and get them certified.
    Note: To test in-app item purchases, your app and items only need to be registered. They do not need to be certified.
  3. Connect your app's Gear device with an Android smartphone.
  4. Support and process in-app item purchase transactions: 
     

     

     

    Gear_InAppItem_Purchase_UI.png

    In your app:

    a.  Present in-app items to your users:

    • Retrieve all items currently available for purchase (including their current local price) by making agetItemListAPI call.
    • Retrieve the items the user has already purchased to make appropriate decisions by making agetPurchasedItemListAPI call.
    • Use the available and user-purchased items information
      (provided byGetItemSuccessCallback) as needed.
    • Enable users to select and initiate a purchase.
       

    b.  After the user initiates the purchase of an in-app item, start purchase processing by making astartPaymentclient API call.

    IAP_Purchase_Flow_2.png

    Gear IAP manages the item purchase:

    a.   Gets current item information (such as pricing).

    b.  In the Android smartphone connected to the Gear device:

    • Presents purchase information and options to the user.
    • Gets purchase authorization and payment from the user. 

    c.  Notifies your app of the results of the purchase transaction.

    Gear_App_Uses_Purchased_Items.png

    In your app:

    a.  Use the purchase transaction information provided by PaymentSuccessCallback.

    b.  Properly manage the results of the purchase (for example, by providing user feedback and making the item available to the user). 

 

For details about Gear IAP, see http://developer.samsung.com/gear/distribute/iap.

 

     

    • Was this article helpful?