paypal / paypal-android

One merchant integration point for all of PayPal's services
Apache License 2.0
69 stars 39 forks source link

native paypal can not login #260

Open yukangkangyu opened 3 months ago

yukangkangyu commented 3 months ago

PayPal Android SDK Version

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

Environment

Sandbox

Android Version & Device

Android12

PayPal dependencies

implementation ('com.paypal.android:paypal-native-payments:1.3.0')

Describe the bug

fun startNativeCheckoutWithOrderId(orderId: String,payOrderId:String,applicationId:String,listener: IPaypalPayListener) {
    mOrderId = orderId
    mPayOrderId = payOrderId
    mListener = listener
    mApplicationId = applicationId
    val coreConfig = CoreConfig(getClientId(), environment = Environment.SANDBOX)
    val returnUrl = "$applicationId://paypalpay"
    payPalClient = PayPalNativeCheckoutClient(getApplication(), coreConfig, returnUrl)
    payPalClient.listener = payPalListener
    payPalClient.startCheckout(PayPalNativeCheckoutRequest(mPayOrderId))
}

That's my code I have aroused the paypal pop-up window at the bottom and successfully opened the paypal H5 page. At that time, the login failed, because I kept loading and couldn't get any error information Also, why can't I rely on the latest 1.4.0 native library for gradle

To reproduce

That's my code I have aroused the paypal pop-up window at the bottom and successfully opened the paypal H5 page. At that time, the login failed, because I kept loading and couldn't get any error information Also, why can't I rely on the latest 1.4.0 native library for gradle

Expected behavior

I hope login success

Screenshots

No response

yukangkangyu commented 3 months ago

image alway stay loading page

url: https://www.sandbox.paypal.com/idapps/connect/consent?ctxId=AAF_8kgwEuyLycXkZ6MrBZdBjyoDWB_mOtkrF90Nh1cqYwoUN6DD-5gEeu04nLym5FoLtvSmOlOgPrqedtTzK9Wf&client_id=AXakejhprQjRS0EIMV3zN6YpGrTRr3SPyOHoCgPcmu0CDYTsSufM9rU3YpbI8vJzIRTA5XKWRzBPsXsj&scope=https://uri.paypal.com/web/experience/incontextxo&redirect_uri=com.vitec.easelifeEn://paypalpay&response_type=code&state=5KpV6mQOOlGOUcMhresY9Q&metadata_id=PAYID-MZMZN6A9WB535878M514832T&code_challenge=MEYCIQDRYq1FPjCixufD6aDTzIXogOJejsLgS8EvUKlHTHSPPQIhALpjUaHdH-5WQTPM0ALFScGDpQ7VLaWGlp06pUjs9OC5&code_challenge_method=ES256#/connect/consent