Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Handle Billing result with RxBillingFlow #23

Open
XCarbone opened this issue Sep 3, 2020 · 1 comment
Open

Problem with Handle Billing result with RxBillingFlow #23

XCarbone opened this issue Sep 3, 2020 · 1 comment

Comments

@XCarbone
Copy link

XCarbone commented Sep 3, 2020

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
Copy link
Author

XCarbone commented Sep 3, 2020

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 XCarbone changed the title Handle Billing result with RxBillingFlow, handleActivityResult need int not intent Problem with Handle Billing result with RxBillingFlow Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant