react-native-braintree-xplat icon indicating copy to clipboard operation
react-native-braintree-xplat copied to clipboard

Android Paypal payment automatically cancelled

Open wgltony opened this issue 7 years ago • 3 comments

Every time I clicked paypal checkout, it will throw "USER_CANCELLATION" error. No Paypal Interface will show up. Please help.

Platform: Android "react": "16.0.0-alpha.12", "react-native": "^0.48.0", "react-native-braintree-xplat": "^4.0.0",

compileSdkVersion 26 buildToolsVersion "26.0.2"

defaultConfig {
    applicationId "com.react_native_navigation_bootstrap"
    minSdkVersion 17
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

wgltony avatar Jan 09 '18 04:01 wgltony

Credit Card processing is fine. Error only happened when I clicked Paypal Checkout

image

wgltony avatar Jan 09 '18 04:01 wgltony

Any answer about this? I am facing the same problem.

seanlau555 avatar Feb 05 '18 08:02 seanlau555

Take a look here: https://developers.braintreepayments.com/guides/client-sdk/setup/android/v2#browser-switch-setup

Especially to the note: "Note: The scheme you define must use all lowercase letters. If your package contains underscores, the underscores should be removed when specifying the scheme in your Android Manifest."

Fixed mine with removing underscore from url scheme in manifest (my package has one)

408dev avatar Mar 03 '18 14:03 408dev