This reference document contains details, parameters, and usage of launchBillingFlow, and newBuilder methods.
int launchBillingFlow (Activity activity, BillingFlowParams params)
The launchBillingFlow method initiates the billing flow for in-app purchases. now.gg Billing service will deliver the results using PurchasesUpdatedListener interface by utilizing setListener(PurchasesUpdatedListener)
| Parameters | Description | Return |
|---|---|---|
| activity | Billing flow will be launched using this activity reference | If the user already owns the item, the return value is 7. If the item is not available, the return value is 4. If the user cancels the purchase flow, the return value is 1. |
| params | BillingFlowParams : Params specific to the launch billing flow request |
BillingClient.Builder newBuilder (Context context)
The newBuilder method is used to construct a new BillingClient.Builder instance.
| Parameters | Description | Returns |
|---|---|---|
| context | Gets context to bind to the now.gg Billing Service | BillingClient.Builder |
Payments Module
Payments Module
Document Rev. 1.0