paypal / android-checkout-sdk

Apache License 2.0
77 stars 38 forks source link

SDK is always forcing the WebCheckout when in Live environment #252

Closed mauro-poq closed 1 year ago

mauro-poq commented 1 year ago

Hey @tdchow (sorry to mention you directly but I have some urgency) question: I'm using the latest version (0.122.2) of the SDK but for some reason when I try to start the paysheet on the LIVE environment, it shows the Web Checkout experience instead of the native paysheet, in SANDBOX the paysheet is presented correctly. Is this some kind of configuration needed on the dashboard or on the code? By the way, I'm forcing the showWebCheckout to false, here is my configuration object:

CheckoutConfig(
            application = application,
            clientId = {CLIENT_ID},
            environment = Environment.LIVE,
            userAction = UserAction.PAY_NOW,
            settingsConfig = SettingsConfig(
                loggingEnabled = BuildConfig.DEBUG,
                showWebCheckout = false,
            ),
            returnUrl = "${application.packageName}://paypalpay",
        )
tdchow commented 1 year ago

HI @mauro-poq - no worries at all.

Do you know what the buyer country is for the login you're using in Live? Currently the native paysheet will only show for US and CA regions, everywhere else will fallback to web due to eligibility.

mauro-poq commented 1 year ago

Hey @tdchow this explains everything, my account and the ones used are from the UK.

Thanks for the answer. Do you have any idea of when the UK will be supported?

tdchow commented 1 year ago

Great. Glad I could clear it up. We plan to enable the native experience in the UK in the near future - although I don't have a timeframe to share.

When we do make this change, it'll be completely serverside. So you won't need to do an SDK version update for EU support.

I'll go ahead and close this issue. Feel free to reopen it if you have additional questions/concerns. Thanks!

mauro-poq commented 1 year ago

Thanks @tdchow