RxBilling icon indicating copy to clipboard operation
RxBilling copied to clipboard

Problem with Handle Billing result with RxBillingFlow

Open XCarbone opened this issue 4 years ago • 1 comments

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 ?

XCarbone avatar Sep 03 '20 07:09 XCarbone

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.

XCarbone avatar Sep 03 '20 08:09 XCarbone