react-native-braintree-xplat
react-native-braintree-xplat copied to clipboard
Android Paypal payment automatically cancelled
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"
}
}
Credit Card processing is fine. Error only happened when I clicked Paypal Checkout
Any answer about this? I am facing the same problem.
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)