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

use “paypal-web-payments” way,the first time it can call back to our app, the second time it can't #247

Open
HoanChen opened this issue Mar 25, 2024 · 3 comments

Comments

@HoanChen
Copy link

PayPal Android SDK Version

com.paypal.android:paypal-web-payments:1.3.0

Environment

Sandbox

Android Version & Device

android 12

PayPal dependencies

com.paypal.android:paypal-web-payments:1.3.0

Describe the bug

use “paypal-web-payments” way,the first time it can call back to our app, the second time it can't

To reproduce

payPalWebCheckoutClient.listener = object : PayPalWebCheckoutListener {
override fun onPayPalWebSuccess(result: PayPalWebCheckoutResult) {
// order was approved and is ready to be captured/authorized (see step 7)

        }

        override fun onPayPalWebFailure(error: PayPalSDKError) {
            Log.e(TAG, "onPayPalWebFailure error: $error")
           
        }

        override fun onPayPalWebCanceled() {
            Log.e(TAG, "onPayPalWebCanceled")
           
        }
    }

can not listener

Expected behavior

expected result
1
2

fail result
fail

Screenshots

No response

@gordonchanhk
Copy link

It seems the issue is partly related to the browser that selected to launch the checkout.
Using Chrome and Samsung browser are fine, but some other seems not. Would that possible to pre-select using Chrome to launch the Checkout?

@warmkesselj
Copy link
Collaborator

@HoanChen we think this PR may resolve the issues you're having with the follow up transactions

@Bolito-Game
Copy link

Greetings, I've updated to 1.4.0 and also to 1.4.1-SNAPSHOT and still confront the same issue. The listener, reverts back to the first transaction and the Capture API rejects the transaction because it had already registered it. Going over the notes on the release 1.4.0, it stated that steps were taken to remove observers. This is what PR-251 says is the root cause.
I am working on the Paypal Sandbox environment with a physical Samsung Galaxy S-22 as the testing device.

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

4 participants