RxBilling
RxBilling copied to clipboard
Problem with Handle Billing result with RxBillingFlow
in this method :
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
disposable.add(
rxBillingFlow.handleActivityResult(data)
.subscribe({
Timber.d("onActivityResult $it")
tvServiceFlow.text = it.toString()
}, {
Timber.e(it)
tvServiceFlow.text = it.toString()
}))
}
handleActivityResult need int not intent, how to fix it ?
It seem that handleActivityResult now need ActivityResultCode and the intent. i am guessing that we should do this : rxBillingFlow.handleActivityResult(resultCode, data)
am i right ?
My problem is that although startFlowWithService work and i can manage to buy my subscription, onActivityResult is never called and i can't get my Purchase details such as date and trasactionID.