startOrder

abstract fun startOrder(activity: Activity?, productId: String?, options: Bundle? = null): LiveData<Orderz>

Initiate the purchase flow from the perspective of a user interaction. e.g. a Customer opens your app and selects a product for purchase.

Return

LiveData

Parameters

activity
  • the currently active android Activity class

productId
  • the product id that can be found on the GooglePlayConsole validation of a customer's purchase order - this allows you to do such things as verifying a purchase with your backend before completing the purchase flow.