Sub btnRemoveAds_Click
'make sure that the store service is connected
Wait For (billing.ConnectIfNeeded) Billing_Connected (Result As BillingResult)
If Result.IsSuccess Then
'get the sku details
Dim sf As Object = billing.QuerySkuDetails("subs", Array(ADS_SDK_ID))
Wait For (sf) Billing_SkuQueryCompleted (Result As BillingResult, SkuDetails As List)
Log(Result.CODE_ERROR&" "&Result.ResponseCode&" "&Result.ResponseCodeString)
Log("Query completed: " & Result.IsSuccess & " size: " & SkuDetails.Size )
If Result.IsSuccess And SkuDetails.Size = 1 Then
Result = billing.LaunchBillingFlow(SkuDetails.Get(0))
If Result.IsSuccess Then Return
End If
End If
ToastMessageShow("Error starting billing process", True)
End Sub