Get All productId purchased

To retrieve a list of all purchased product IDs, you can use the getIapPackage() function. This method returns an ArrayList of SdkIapPackageDto, representing all the purchased products.

  suspend fun getIapPackage(): ArrayList<SdkIapPackageDto>
  
Example

Get price of purchase package

Inapp Purchase

This function retrieves the price of an in-app product specified by its productId. The price information is useful for displaying to users before they make a purchase decision.

  fun getPricePurchase(
  productId: String,
  callback: IKBillingValueListener?
)
  

Parameters:

  • productId: String: The ID of the product you want to retrieve details for. This is typically defined in the Google Play Console as part of your in-app products or subscriptions.

  • callback: IKBillingValueListener

Example

Subscription

This function retrieves the price of an subscription product specified by its productId. The price information is useful for displaying to users before they make a subscription decision.

  fun getPriceSubscribe(
  productId: String,
  callback: IKBillingValueListener?
)
  

Parameters:

  • productId: String: The ID of the product you want to retrieve details for. This is typically defined in the Google Play Console as part of your in-app products or subscriptions.

  • callback: IKBillingValueListener

Example