Comments (3)
Hey there! When you select pay by credit card, the camera should open by default. If you only see a manual entry form, there's a problem. Please double check that you're allowing the right permissions (see the Sample app and/or readme instructions), and that you're using the latest version of the sdk. If you are unable to identity the problem, then check the logcat for anything suspicious.
from paypal-android-sdk.
Thanks for your reply!
Well i have found the problem! When i tried to compile the project in Eclipse, it worked (even the camera icon showed up on the button). But since i am using Android Studio, i tried to find the problem.
The SDK readme file has a line:
- Some tools (including IntelliJ) will require that you add libs/PayPalSDK.jar to their dependencies path.
But the thing is, there is nothing said about the static libraries that are not compiled by default, so to solve the problem, i added these lines to my build.gradle file:
task copyNativeLibs(type: Copy) {
from(new File('libs')) { include '**' }
into new File(buildDir, 'native-libs')
}
tasks.withType(Compile) { compileTask -> compileTask.dependsOn copyNativeLibs }
clean.dependsOn 'cleanCopyNativeLibs'
tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask ->
pkgTask.jniDir new File(buildDir, 'native-libs')
}
So now everything works as expected though it instantly added a 2.10MB to the apk size! Hope it helps someone.
from paypal-android-sdk.
Great! Glad you were able to resolve the problem. Regarding Gradle: we are not officially providing support until we get a certain set of missing features (specifically, ndk integration). When that happens, we'll jump in head first! 🔨
from paypal-android-sdk.
Related Issues (20)
- checkout-session not created - Code 422 HOT 1
- The merchant does not accept payments of this type HOT 1
- Request failure with http statusCode:422 HOT 1
- request failure with http statusCode:422,exception: & checkout-session not created HOT 1
- DE HOT 1
- Compiling release APK when targetSDKversion is lower than 26 HOT 1
- okio.asynctimeout$1 and error:execution failed for task ':app:transformclasseswithdexforrelease'. HOT 1
- there is problem communicate with paypal servers HOT 1
- When i using INR currency then it won't work . HOT 7
- Sometimes white screen if when single payment is called HOT 3
- UNAUTHORIZED_PAYMENT HOT 1
- There was a problem communicating with the PayPal servers HOT 1
- Issue with Paypal interation with android HOT 1
- Admin's Braintree to Seller's PayPal - Android HOT 1
- PayPal Methods issues HOT 1
- Provide support for the latest API level HOT 2
- Sending purchased items details to the PayPal. HOT 1
- How to Get User Information HOT 2
- Multiple Product List display in single line in payment screen. HOT 1
- PackageManager died when launching PayPalProfileSharingActivity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paypal-android-sdk.